OSDN Git Service

Silence warning with assertions disabled.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 15 Jun 2017 17:41:32 +0000 (17:41 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 15 Jun 2017 17:41:32 +0000 (17:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305485 91177308-0d34-0410-b5e6-96231b3b80d8

lib/LTO/LTO.cpp

index 953aea9..35032fd 100644 (file)
@@ -371,6 +371,7 @@ void LTO::addModuleToGlobalRes(ArrayRef<InputFile::Symbol> 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++;