Silence warning with assertions disabled.

llvm-svn: 305485
This commit is contained in:
Peter Collingbourne 2017-06-15 17:41:32 +00:00
parent ae9312c487
commit 7e85b26549
1 changed files with 1 additions and 0 deletions

View 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++;