forked from OSchip/llvm-project
[TableGen] Fix an assert I missed in r258063.
llvm-svn: 258068
This commit is contained in:
parent
ccdc5391ea
commit
7dcb1a5c89
|
@ -535,7 +535,7 @@ ListInit::convertInitListSlice(const std::vector<unsigned> &Elements) 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));
|
||||
if (!DI)
|
||||
PrintFatalError("Expected record in list!");
|
||||
|
|
Loading…
Reference in New Issue