From fc196f9ee909ac35837f6f771a42aa0dec817584 Mon Sep 17 00:00:00 2001 From: Chris Lattner <sabre@nondot.org> Date: Mon, 16 Jun 2008 23:06:51 +0000 Subject: 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 --- lib/Linker/LinkModules.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/Linker') 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); -- cgit v1.1