From b9ff4ba71963b3cba9621e5bd702df079aba1af4 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 15 Jun 2017 17:41:32 +0000 Subject: [PATCH] Silence warning with assertions disabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305485 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/LTO/LTO.cpp | 1 + 1 file changed, 1 insertion(+) 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++; -- 2.11.0