summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/ModuleSummaryIndex.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2016-04-05 09:07:47 +0000
committerHaojian Wu <hokein@google.com>2016-04-05 09:07:47 +0000
commit591ae468201532c6ce59826d10f596c6bba37a7b (patch)
tree85c128e423a8c718f22cd59b8fd39b0f89e10fcf /llvm/lib/IR/ModuleSummaryIndex.cpp
parenta3d5b0b2183fe623974d17d51c2e3168e0b02420 (diff)
downloadbcm5719-llvm-591ae468201532c6ce59826d10f596c6bba37a7b.tar.gz
bcm5719-llvm-591ae468201532c6ce59826d10f596c6bba37a7b.zip
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
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
-rw-r--r--llvm/lib/IR/ModuleSummaryIndex.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/IR/ModuleSummaryIndex.cpp b/llvm/lib/IR/ModuleSummaryIndex.cpp
index 340eccac6bd..32415cff816 100644
--- a/llvm/lib/IR/ModuleSummaryIndex.cpp
+++ b/llvm/lib/IR/ModuleSummaryIndex.cpp
@@ -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();
}
OpenPOWER on IntegriCloud