mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-11 15:07:58 +00:00
[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:
parent
fed07c121e
commit
e0ace4ad68
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user