[TableGen] Fix -Wparentheses

This commit is contained in:
Fangrui Song 2021-04-16 13:37:52 -07:00
parent a0ed70abde
commit 657b325416
1 changed files with 7 additions and 7 deletions

View File

@ -2023,12 +2023,12 @@ void TreePatternNode::InlinePatternFragments(
if (ChildAlternatives[i].empty())
return;
assert(Child->getPredicateCalls().empty() ||
assert((Child->getPredicateCalls().empty() ||
llvm::all_of(ChildAlternatives[i],
[&](const TreePatternNodePtr &NewChild) {
return NewChild->getPredicateCalls() ==
Child->getPredicateCalls();
}) &&
})) &&
"Non-empty child predicate clobbered!");
}