1
0
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:
Craig Topper 2016-01-18 19:59:05 +00:00
parent a09c2fcc35
commit 4b8a0e95c4

View File

@ -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!");