From: Alexey Samsonov Date: Tue, 19 Mar 2013 15:33:18 +0000 (+0000) Subject: Fix for r177390: map values are pointers, use DeleteContainerSeconds() instead of... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=51283a1513648b235925e8f931707ebdea217359;p=oota-llvm.git 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 --- diff --git a/tools/llvm-symbolizer/LLVMSymbolize.cpp b/tools/llvm-symbolizer/LLVMSymbolize.cpp index 52ae49c0f17..29d91a0e92a 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.