[llvm] r265383 - Add parentheses around `&&` within `||` to avoid compiler warning message.
Haojian Wu via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 5 02:07:47 PDT 2016
Author: hokein
Date: Tue Apr 5 04:07:47 2016
New Revision: 265383
URL: http://llvm.org/viewvc/llvm-project?rev=265383&view=rev
Log:
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
Modified:
llvm/trunk/lib/IR/ModuleSummaryIndex.cpp
Modified: llvm/trunk/lib/IR/ModuleSummaryIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/ModuleSummaryIndex.cpp?rev=265383&r1=265382&r2=265383&view=diff
==============================================================================
--- llvm/trunk/lib/IR/ModuleSummaryIndex.cpp (original)
+++ llvm/trunk/lib/IR/ModuleSummaryIndex.cpp Tue Apr 5 04:07:47 2016
@@ -74,9 +74,8 @@ ModuleSummaryIndex::getGlobalValueInfo(u
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();
}
More information about the llvm-commits
mailing list