forked from OSchip/llvm-project
[IPO] Fix operator precedence warning. NFCI.
Check the entire assertion condition before && with the message.
This commit is contained in:
parent
50bff64158
commit
50dd1dba6e
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue