aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/VMCore/AsmWriter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 4128fdb..854c3ba 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -146,9 +146,8 @@ void TypePrinting::clear() {
}
TypePrinting::TypePrinting(const Module *M) {
- if (M == 0) return;
-
TypeNames = new std::map<const Type *, std::string>();
+ if (M == 0) return;
// If the module has a symbol table, take all global types and stuff their
// names into the TypeNames map.