diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index 953aea992824..35032fdd33e1 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/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++;