projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a12de7
)
fix inverted condition.
author
Chris Lattner
<sabre@nondot.org>
Wed, 17 Feb 2010 00:11:30 +0000
(
00:11
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 17 Feb 2010 00:11:30 +0000
(
00:11
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96416
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/DAGISelMatcherGen.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/DAGISelMatcherGen.cpp
b/utils/TableGen/DAGISelMatcherGen.cpp
index e622eecd3c20b129a49205cab1698d795b91ce7e..532d3c1646892fabd81cce443baee3502ff8a82b 100644
(file)
--- a/
utils/TableGen/DAGISelMatcherGen.cpp
+++ b/
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);
}