[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284039 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Teresa Johnson 2016-10-12 20:06:02 +00:00
parent fed07c121e
commit e0ace4ad68

View File

@ -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);
}