diff options
-rw-r--r-- | tools/llvm-lto2/llvm-lto2.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/llvm-lto2/llvm-lto2.cpp b/tools/llvm-lto2/llvm-lto2.cpp index 0813f4728e6..a3cc6ef14d1 100644 --- a/tools/llvm-lto2/llvm-lto2.cpp +++ b/tools/llvm-lto2/llvm-lto2.cpp @@ -176,7 +176,10 @@ int main(int argc, char **argv) { } } for (auto I : CurrentFileSymResolutions) { - auto NumErased = CommandLineResolutions.erase({F, I.first}); +#ifndef NDEBUG + auto NumErased = +#endif + CommandLineResolutions.erase({F, I.first}); assert(NumErased > 0); } |