forked from OSchip/llvm-project
Add parentheses around `&&` within `||` to avoid compiler warning message.
Summary: The assert code is introduced by r265370. Reviewers: bkramer Subscribers: tejohnson Differential Revision: http://reviews.llvm.org/D18786 llvm-svn: 265383
This commit is contained in:
parent
a3d5b0b218
commit
591ae46820
|
@ -74,9 +74,8 @@ ModuleSummaryIndex::getGlobalValueInfo(uint64_t ValueGUID,
|
|||
bool PerModuleIndex) const {
|
||||
auto InfoList = findGlobalValueInfoList(ValueGUID);
|
||||
assert(InfoList != end() && "GlobalValue not found in index");
|
||||
assert(!PerModuleIndex ||
|
||||
InfoList->second.size() == 1 &&
|
||||
"Expected a single entry per global value in per-module index");
|
||||
assert((!PerModuleIndex || InfoList->second.size() == 1) &&
|
||||
"Expected a single entry per global value in per-module index");
|
||||
auto &Info = InfoList->second[0];
|
||||
return Info.get();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue