fix a broke range check

llvm-svn: 23354
This commit is contained in:
Chris Lattner 2005-09-14 21:04:12 +00:00
parent 3ba60bf644
commit 24ae3494f0
1 changed files with 1 additions and 1 deletions

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