diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-10-12 20:06:02 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-10-12 20:06:02 +0000 |
commit | 2f159a265a36cabc5a088bde50ac87bebaadcf8e (patch) | |
tree | a87218882397f63b790eb0ff4312776d87074cd7 /llvm/tools/llvm-lto2/llvm-lto2.cpp | |
parent | 28ac334addef825e3fa410f5b7de0816c2a7af85 (diff) | |
download | bcm5719-llvm-2f159a265a36cabc5a088bde50ac87bebaadcf8e.tar.gz bcm5719-llvm-2f159a265a36cabc5a088bde50ac87bebaadcf8e.zip |
[ThinLTO] Fix bot failure due to unused variable with NDEBUG
Put variable only used in assert under #ifndef NDEBUG.
This should fix bot failure at
http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/28537
llvm-svn: 284039
Diffstat (limited to 'llvm/tools/llvm-lto2/llvm-lto2.cpp')
-rw-r--r-- | llvm/tools/llvm-lto2/llvm-lto2.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/llvm-lto2/llvm-lto2.cpp b/llvm/tools/llvm-lto2/llvm-lto2.cpp index 0813f4728e6..a3cc6ef14d1 100644 --- a/llvm/tools/llvm-lto2/llvm-lto2.cpp +++ b/llvm/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); } |