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
This commit is contained in:
Alexey Samsonov 2013-03-19 15:33:18 +00:00
parent 58890d52eb
commit 51283a1513

View 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.