aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-06-15 17:41:32 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-06-15 17:41:32 +0000
commit7e85b26549b93f314de441085f01a9b6b3f9d0f0 (patch)
tree7d5ae0b80dc75f8b4f1d6048f571c4beab544e9f /llvm/lib/LTO/LTO.cpp
parentae9312c487c6178a538e9123700b15558e10ad79 (diff)
downloadllvm-7e85b26549b93f314de441085f01a9b6b3f9d0f0.zip
llvm-7e85b26549b93f314de441085f01a9b6b3f9d0f0.tar.gz
llvm-7e85b26549b93f314de441085f01a9b6b3f9d0f0.tar.bz2
Silence warning with assertions disabled.
llvm-svn: 305485
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index 953aea9..35032fd 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -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++;