summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-06-26 14:51:22 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-06-26 14:51:22 +0000
commita17cbff2f6987dc3862ffdfd50aa9cb5dd12b984 (patch)
tree7f2f124388a121d0459afa32cecd30369f5dd550
parent854038ed1ae97467ed3d00a82b01508e2d9843f4 (diff)
downloadbcm5719-llvm-a17cbff2f6987dc3862ffdfd50aa9cb5dd12b984.tar.gz
bcm5719-llvm-a17cbff2f6987dc3862ffdfd50aa9cb5dd12b984.zip
Silencing spurious MSVC C4189 warnings regarding local variables that are initialized but not used; NFC. This bug has been reported to Microsoft (https://connect.microsoft.com/VisualStudio/feedback/details/1475983).
llvm-svn: 240786
-rw-r--r--llvm/tools/dsymutil/DwarfLinker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/dsymutil/DwarfLinker.cpp b/llvm/tools/dsymutil/DwarfLinker.cpp
index 7879e83d70f..15c86e17362 100644
--- a/llvm/tools/dsymutil/DwarfLinker.cpp
+++ b/llvm/tools/dsymutil/DwarfLinker.cpp
@@ -1427,10 +1427,10 @@ void DwarfLinker::endDebugObject() {
ValidRelocs.clear();
Ranges.clear();
- for (auto *Block : DIEBlocks)
- Block->~DIEBlock();
- for (auto *Loc : DIELocs)
- Loc->~DIELoc();
+ for (auto I = DIEBlocks.begin(), E = DIEBlocks.end(); I != E; ++I)
+ (*I)->~DIEBlock();
+ for (auto I = DIELocs.begin(), E = DIELocs.end(); I != E; ++I)
+ (*I)->~DIELoc();
DIEBlocks.clear();
DIELocs.clear();
OpenPOWER on IntegriCloud