From: Peter Collingbourne Date: Thu, 15 Jun 2017 17:41:32 +0000 (+0000) Subject: Silence warning with assertions disabled. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9ff4ba71963b3cba9621e5bd702df079aba1af4;p=llvm Silence warning with assertions disabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305485 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/LTO/LTO.cpp b/lib/LTO/LTO.cpp index 953aea99282..35032fdd33e 100644 --- a/lib/LTO/LTO.cpp +++ b/lib/LTO/LTO.cpp @@ -371,6 +371,7 @@ void LTO::addModuleToGlobalRes(ArrayRef Syms, unsigned Partition, bool InSummary) { auto *ResI = Res.begin(); auto *ResE = Res.end(); + (void)ResE; for (const InputFile::Symbol &Sym : Syms) { assert(ResI != ResE); SymbolResolution Res = *ResI++;