[IPO] Fix operator precedence warning. NFCI.

Check the entire assertion condition before && with the message.
This commit is contained in:
Simon Pilgrim 2020-12-07 18:10:24 +00:00
parent 50bff64158
commit 50dd1dba6e
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ FunctionSamples *SampleContextTracker::getBaseSamplesFor(StringRef Name,
continue;
ContextTrieNode &ToNode = promoteMergeContextSamplesTree(*FromNode);
assert(!Node || Node == &ToNode && "Expect only one base profile");
assert((!Node || Node == &ToNode) && "Expect only one base profile");
Node = &ToNode;
}
}