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
diff --git a/llvm/lib/IR/ModuleSummaryIndex.cpp b/llvm/lib/IR/ModuleSummaryIndex.cpp
index 340ecca..32415cf 100644
--- a/llvm/lib/IR/ModuleSummaryIndex.cpp
+++ b/llvm/lib/IR/ModuleSummaryIndex.cpp
@@ -74,9 +74,8 @@
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();
}