[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Mar 25 14:12:57 PST 2006
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.187 -> 1.188
---
Log message:
Add a missing check which cause an invalid .td file to crash tblgen
---
Diffs of the changes: (+3 -0)
DAGISelEmitter.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.187 llvm/utils/TableGen/DAGISelEmitter.cpp:1.188
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.187 Sat Mar 25 00:47:53 2006
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Sat Mar 25 16:12:44 2006
@@ -1342,6 +1342,9 @@
// Check that it exists in InstResults.
TreePatternNode *RNode = InstResults[OpName];
+ if (RNode == 0)
+ I->error("Operand $" + OpName + " does not exist in operand list!");
+
if (i == 0)
Res0Node = RNode;
Record *R = dynamic_cast<DefInit*>(RNode->getLeafValue())->getDef();
More information about the llvm-commits
mailing list