1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[TableGen] Fix -Wparentheses

This commit is contained in:
Fangrui Song 2021-04-16 13:37:52 -07:00
parent 549eeb882a
commit adec14b680

View File

@ -2023,13 +2023,13 @@ void TreePatternNode::InlinePatternFragments(
if (ChildAlternatives[i].empty())
return;
assert(Child->getPredicateCalls().empty() ||
llvm::all_of(ChildAlternatives[i],
[&](const TreePatternNodePtr &NewChild) {
return NewChild->getPredicateCalls() ==
Child->getPredicateCalls();
}) &&
"Non-empty child predicate clobbered!");
assert((Child->getPredicateCalls().empty() ||
llvm::all_of(ChildAlternatives[i],
[&](const TreePatternNodePtr &NewChild) {
return NewChild->getPredicateCalls() ==
Child->getPredicateCalls();
})) &&
"Non-empty child predicate clobbered!");
}
// The end result is an all-pairs construction of the resultant pattern.