diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-16 23:06:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-16 23:06:51 +0000 |
commit | a932649581be2192828ed13e0fcb8f85b9d503b2 (patch) | |
tree | ae0dad444ee2c81560baecbbdfd4b514e1be1e38 | |
parent | b314101dc2607b3f9d2ec089e21aca408078fa45 (diff) | |
download | external_llvm-a932649581be2192828ed13e0fcb8f85b9d503b2.zip external_llvm-a932649581be2192828ed13e0fcb8f85b9d503b2.tar.gz external_llvm-a932649581be2192828ed13e0fcb8f85b9d503b2.tar.bz2 |
Add a missing ~ (dtor became ctor) which caused crashes on a bunch of stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52374 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Linker/LinkModules.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 27c71b1..e9b712f 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -83,9 +83,12 @@ namespace { class LinkerTypeMap : public AbstractTypeUser { typedef DenseMap<const Type*, PATypeHolder> TheMapTy; TheMapTy TheMap; -public: - LinkerTypeMap() { + LinkerTypeMap(const LinkerTypeMap&); // DO NOT IMPLEMENT + void operator=(const LinkerTypeMap&); // DO NOT IMPLEMENT +public: + LinkerTypeMap() {} + ~LinkerTypeMap() { for (DenseMap<const Type*, PATypeHolder>::iterator I = TheMap.begin(), E = TheMap.end(); I != E; ++I) I->first->removeAbstractTypeUser(this); |