Fix for r177390: map values are pointers, use DeleteContainerSeconds() instead of...
authorAlexey Samsonov <samsonov@google.com>
Tue, 19 Mar 2013 15:33:18 +0000 (15:33 +0000)
committerAlexey Samsonov <samsonov@google.com>
Tue, 19 Mar 2013 15:33:18 +0000 (15:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177409 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-symbolizer/LLVMSymbolize.cpp

index 52ae49c0f178da72d744495d6f5b31fbf90f9154..29d91a0e92a378b70ed58f9880809bbc00fccd88 100644 (file)
@@ -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.