mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 01:03:52 +00:00
fix inverted condition.
llvm-svn: 96416
This commit is contained in:
parent
d147b9a4d4
commit
ebf80812e3
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user