From 2c567eb2cdc9db62971768280b8981e55ec7c68b Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Tue, 5 Apr 2016 09:07:47 +0000 Subject: [PATCH] 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 --- lib/IR/ModuleSummaryIndex.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/IR/ModuleSummaryIndex.cpp b/lib/IR/ModuleSummaryIndex.cpp index 340eccac6bd..32415cff816 100644 --- a/lib/IR/ModuleSummaryIndex.cpp +++ b/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(); }