diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-01-18 19:59:05 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-01-18 19:59:05 +0000 |
commit | b51e7cd7a3a0d1323325623369d6893340fa526e (patch) | |
tree | 5f044699b07115b35d68bf5af2e211fe6dfe1218 /lib/TableGen | |
parent | c39079c7f4c98ad3f941b37f842a3bb0fb7164da (diff) | |
download | llvm-b51e7cd7a3a0d1323325623369d6893340fa526e.tar.gz |
[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
Diffstat (limited to 'lib/TableGen')
-rw-r--r-- | lib/TableGen/Record.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/TableGen/Record.cpp b/lib/TableGen/Record.cpp index dad68c958552..e1eb1d765ceb 100644 --- a/lib/TableGen/Record.cpp +++ b/lib/TableGen/Record.cpp @@ -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!"); |