diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-17 00:11:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-17 00:11:30 +0000 |
commit | 7b390142fc8dc5de02198a1cc608ca65a9cf4af0 (patch) | |
tree | c4d60e670944c4c37a634b1689650533569336b2 /llvm/utils/TableGen/DAGISelMatcherGen.cpp | |
parent | cee887425e5cb31984ee2547762baa50e63af5bf (diff) | |
download | bcm5719-llvm-7b390142fc8dc5de02198a1cc608ca65a9cf4af0.tar.gz bcm5719-llvm-7b390142fc8dc5de02198a1cc608ca65a9cf4af0.zip |
fix inverted condition.
llvm-svn: 96416
Diffstat (limited to 'llvm/utils/TableGen/DAGISelMatcherGen.cpp')
-rw-r--r-- | llvm/utils/TableGen/DAGISelMatcherGen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/DAGISelMatcherGen.cpp b/llvm/utils/TableGen/DAGISelMatcherGen.cpp index e622eecd3c2..532d3c16468 100644 --- a/llvm/utils/TableGen/DAGISelMatcherGen.cpp +++ b/llvm/utils/TableGen/DAGISelMatcherGen.cpp @@ -137,7 +137,9 @@ void MatcherGen::EmitLeafMatchCode(const TreePatternNode *N) { 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); } |