[llvm] r177409 - Fix for r177390: map values are pointers, use DeleteContainerSeconds() instead of .clear()
Alexey Samsonov
samsonov at google.com
Tue Mar 19 08:33:19 PDT 2013
Author: samsonov
Date: Tue Mar 19 10:33:18 2013
New Revision: 177409
URL: http://llvm.org/viewvc/llvm-project?rev=177409&view=rev
Log:
Fix for r177390: map values are pointers, use DeleteContainerSeconds() instead of .clear()
Modified:
llvm/trunk/tools/llvm-symbolizer/LLVMSymbolize.cpp
Modified: llvm/trunk/tools/llvm-symbolizer/LLVMSymbolize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-symbolizer/LLVMSymbolize.cpp?rev=177409&r1=177408&r2=177409&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-symbolizer/LLVMSymbolize.cpp (original)
+++ llvm/trunk/tools/llvm-symbolizer/LLVMSymbolize.cpp Tue Mar 19 10:33:18 2013
@@ -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::symbolizeDat
}
void LLVMSymbolizer::flush() {
- Modules.clear();
+ DeleteContainerSeconds(Modules);
}
// Returns true if the object endianness is known.
More information about the llvm-commits
mailing list