[llvm-commits] [llvm] r96416 - /llvm/trunk/utils/TableGen/DAGISelMatcherGen.cpp

Chris Lattner sabre at nondot.org
Tue Feb 16 16:11:33 PST 2010


Author: lattner
Date: Tue Feb 16 18:11:30 2010
New Revision: 96416

URL: http://llvm.org/viewvc/llvm-project?rev=96416&view=rev
Log:
fix inverted condition.

Modified:
    llvm/trunk/utils/TableGen/DAGISelMatcherGen.cpp

Modified: llvm/trunk/utils/TableGen/DAGISelMatcherGen.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/DAGISelMatcherGen.cpp?rev=96416&r1=96415&r2=96416&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/DAGISelMatcherGen.cpp (original)
+++ llvm/trunk/utils/TableGen/DAGISelMatcherGen.cpp Tue Feb 16 18:11:30 2010
@@ -137,7 +137,9 @@
     return AddMatcherNode(new CheckCondCodeMatcherNode(LeafRec->getName()));
   
   if (LeafRec->isSubClassOf("ComplexPattern")) {
-    if (!N->getName().empty()) {
+    // We can't model ComplexPattern uses that don't have their name taken yet.
+    // The OPC_CheckComplexPattern operation implicitly records the results.
+    if (N->getName().empty()) {
       errs() << "We expect complex pattern uses to have names: " << *N << "\n";
       exit(1);
     }





More information about the llvm-commits mailing list