diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 27c71b16186..e9b712f1959 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -83,9 +83,12 @@ namespace { class LinkerTypeMap : public AbstractTypeUser { typedef DenseMap TheMapTy; TheMapTy TheMap; -public: - LinkerTypeMap() { + LinkerTypeMap(const LinkerTypeMap&); // DO NOT IMPLEMENT + void operator=(const LinkerTypeMap&); // DO NOT IMPLEMENT +public: + LinkerTypeMap() {} + ~LinkerTypeMap() { for (DenseMap::iterator I = TheMap.begin(), E = TheMap.end(); I != E; ++I) I->first->removeAbstractTypeUser(this);