summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/DAGISelMatcherGen.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-17 00:11:30 +0000
committerChris Lattner <sabre@nondot.org>2010-02-17 00:11:30 +0000
commit7b390142fc8dc5de02198a1cc608ca65a9cf4af0 (patch)
treec4d60e670944c4c37a634b1689650533569336b2 /llvm/utils/TableGen/DAGISelMatcherGen.cpp
parentcee887425e5cb31984ee2547762baa50e63af5bf (diff)
downloadbcm5719-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.cpp4
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);
}
OpenPOWER on IntegriCloud