summaryrefslogtreecommitdiff
path: root/tools/llvm-symbolizer
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-03-19 15:33:18 +0000
committerAlexey Samsonov <samsonov@google.com>2013-03-19 15:33:18 +0000
commit51283a1513648b235925e8f931707ebdea217359 (patch)
tree42f6e4e708a1269ecc74c7be759cde0d0f574aa4 /tools/llvm-symbolizer
parent58890d52eb6f9ba44e70c8fc651201f1d429489e (diff)
downloadllvm-51283a1513648b235925e8f931707ebdea217359.tar.gz
llvm-51283a1513648b235925e8f931707ebdea217359.tar.bz2
llvm-51283a1513648b235925e8f931707ebdea217359.tar.xz
Fix for r177390: map values are pointers, use DeleteContainerSeconds() instead of .clear()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-symbolizer')
-rw-r--r--tools/llvm-symbolizer/LLVMSymbolize.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-symbolizer/LLVMSymbolize.cpp b/tools/llvm-symbolizer/LLVMSymbolize.cpp
index 52ae49c0f1..29d91a0e92 100644
--- a/tools/llvm-symbolizer/LLVMSymbolize.cpp
+++ b/tools/llvm-symbolizer/LLVMSymbolize.cpp
@@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "LLVMSymbolize.h"
+#include "llvm/ADT/STLExtras.h"
#include "llvm/Object/MachO.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Path.h"
@@ -187,7 +188,7 @@ std::string LLVMSymbolizer::symbolizeData(const std::string &ModuleName,
}
void LLVMSymbolizer::flush() {
- Modules.clear();
+ DeleteContainerSeconds(Modules);
}
// Returns true if the object endianness is known.