mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-04 09:11:43 +00:00
[TableGen] Fix an assert I missed in r258063.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258068 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c39079c7f4
commit
b51e7cd7a3
@ -535,7 +535,7 @@ ListInit::convertInitListSlice(const std::vector<unsigned> &Elements) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Record *ListInit::getElementAsRecord(unsigned i) const {
|
Record *ListInit::getElementAsRecord(unsigned i) const {
|
||||||
assert(i < Values.size() && "List element index out of range!");
|
assert(i < NumValues && "List element index out of range!");
|
||||||
DefInit *DI = dyn_cast<DefInit>(getElement(i));
|
DefInit *DI = dyn_cast<DefInit>(getElement(i));
|
||||||
if (!DI)
|
if (!DI)
|
||||||
PrintFatalError("Expected record in list!");
|
PrintFatalError("Expected record in list!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user