[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 14 14:04:24 PDT 2005
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.20 -> 1.21
---
Log message:
fix a broke range check
---
Diffs of the changes: (+1 -1)
DAGISelEmitter.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.20 llvm/utils/TableGen/DAGISelEmitter.cpp:1.21
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.20 Wed Sep 14 15:53:42 2005
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Wed Sep 14 16:04:12 2005
@@ -785,7 +785,7 @@
// 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!");
More information about the llvm-commits
mailing list