Skip to content

Commit

Permalink
Add parentheses around && within || to avoid compiler warning mes…
Browse files Browse the repository at this point in the history
…sage.

Summary: The assert code is introduced by r265370.

Reviewers: bkramer

Subscribers: tejohnson

Differential Revision: http://reviews.llvm.org/D18786

llvm-svn: 265383
  • Loading branch information
hokein committed Apr 5, 2016
1 parent a3d5b0b commit 591ae46
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions llvm/lib/IR/ModuleSummaryIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 591ae46

Please sign in to comment.