fix a broke range check

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23354 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-09-14 21:04:12 +00:00
parent d8a3bde6fd
commit 3a7319d5ed

View File

@ -785,7 +785,7 @@ void DAGISelEmitter::ParseAndResolveInstructions() {
// Check that all of the results occur first in the list.
for (unsigned i = 0; i != NumResults; ++i) {
if (NumResults == CGI.OperandList.size())
if (i == CGI.OperandList.size())
I->error("'" + InstResults.begin()->first +
"' set but does not appear in operand list!");