mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[TableGen] Fix an assert I missed in r258063.
llvm-svn: 258068
This commit is contained in:
parent
a09c2fcc35
commit
4b8a0e95c4
@ -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
Block a user