[llvm-commits] [llvm] r52374 - /llvm/trunk/lib/Linker/LinkModules.cpp
Chris Lattner
sabre at nondot.org
Mon Jun 16 16:06:51 PDT 2008
Author: lattner
Date: Mon Jun 16 18:06:51 2008
New Revision: 52374
URL: http://llvm.org/viewvc/llvm-project?rev=52374&view=rev
Log:
Add a missing ~ (dtor became ctor) which caused crashes on a bunch of stuff.
Modified:
llvm/trunk/lib/Linker/LinkModules.cpp
Modified: llvm/trunk/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkModules.cpp?rev=52374&r1=52373&r2=52374&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/LinkModules.cpp (original)
+++ llvm/trunk/lib/Linker/LinkModules.cpp Mon Jun 16 18:06:51 2008
@@ -83,9 +83,12 @@
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);
More information about the llvm-commits
mailing list