1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

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:
Haojian Wu 2016-04-05 09:07:47 +00:00
parent 4f1426bbd4
commit 2c567eb2cd

View File

@ -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();
}