[llvm] r305485 - Silence warning with assertions disabled.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 15 10:41:32 PDT 2017
Author: pcc
Date: Thu Jun 15 12:41:32 2017
New Revision: 305485
URL: http://llvm.org/viewvc/llvm-project?rev=305485&view=rev
Log:
Silence warning with assertions disabled.
Modified:
llvm/trunk/lib/LTO/LTO.cpp
Modified: llvm/trunk/lib/LTO/LTO.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTO.cpp?rev=305485&r1=305484&r2=305485&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTO.cpp (original)
+++ llvm/trunk/lib/LTO/LTO.cpp Thu Jun 15 12:41:32 2017
@@ -371,6 +371,7 @@ void LTO::addModuleToGlobalRes(ArrayRef<
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++;
More information about the llvm-commits
mailing list