summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-16 23:06:51 +0000
committerChris Lattner <sabre@nondot.org>2008-06-16 23:06:51 +0000
commit56cdea6b3ec7f97713ffa5935f99ca939d84eef4 (patch)
tree20198ba4c5a130a6fe352554c1bca76109526df2 /llvm/lib
parent1cde1f8d5e893678b1aabe0ef219adf9ad05019e (diff)
downloadbcm5719-llvm-56cdea6b3ec7f97713ffa5935f99ca939d84eef4.tar.gz
bcm5719-llvm-56cdea6b3ec7f97713ffa5935f99ca939d84eef4.zip
Add a missing ~ (dtor became ctor) which caused crashes on a bunch of stuff.
llvm-svn: 52374
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index 27c71b16186..e9b712f1959 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud