mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[TableGen] Fix -Wparentheses
This commit is contained in:
parent
549eeb882a
commit
adec14b680
@ -2023,13 +2023,13 @@ void TreePatternNode::InlinePatternFragments(
|
|||||||
if (ChildAlternatives[i].empty())
|
if (ChildAlternatives[i].empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
assert(Child->getPredicateCalls().empty() ||
|
assert((Child->getPredicateCalls().empty() ||
|
||||||
llvm::all_of(ChildAlternatives[i],
|
llvm::all_of(ChildAlternatives[i],
|
||||||
[&](const TreePatternNodePtr &NewChild) {
|
[&](const TreePatternNodePtr &NewChild) {
|
||||||
return NewChild->getPredicateCalls() ==
|
return NewChild->getPredicateCalls() ==
|
||||||
Child->getPredicateCalls();
|
Child->getPredicateCalls();
|
||||||
}) &&
|
})) &&
|
||||||
"Non-empty child predicate clobbered!");
|
"Non-empty child predicate clobbered!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// The end result is an all-pairs construction of the resultant pattern.
|
// The end result is an all-pairs construction of the resultant pattern.
|
||||||
|
Loading…
Reference in New Issue
Block a user