[llvm] r258068 - [TableGen] Fix an assert I missed in r258063.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 18 11:59:06 PST 2016
Author: ctopper
Date: Mon Jan 18 13:59:05 2016
New Revision: 258068
URL: http://llvm.org/viewvc/llvm-project?rev=258068&view=rev
Log:
[TableGen] Fix an assert I missed in r258063.
Modified:
llvm/trunk/lib/TableGen/Record.cpp
Modified: llvm/trunk/lib/TableGen/Record.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/Record.cpp?rev=258068&r1=258067&r2=258068&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/Record.cpp (original)
+++ llvm/trunk/lib/TableGen/Record.cpp Mon Jan 18 13:59:05 2016
@@ -535,7 +535,7 @@ ListInit::convertInitListSlice(const std
}
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!");
More information about the llvm-commits
mailing list