[llvm-commits] [llvm] r49574 - /llvm/branches/ggreif/use-diet/include/llvm/GlobalVariable.h
Gabor Greif
ggreif at gmail.com
Fri Apr 11 22:09:00 PDT 2008
Author: ggreif
Date: Sat Apr 12 00:09:00 2008
New Revision: 49574
URL: http://llvm.org/viewvc/llvm-project?rev=49574&view=rev
Log:
hack for fixing deallocation of GlobalVariable. later Destroy will take care of the details
Modified:
llvm/branches/ggreif/use-diet/include/llvm/GlobalVariable.h
Modified: llvm/branches/ggreif/use-diet/include/llvm/GlobalVariable.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/include/llvm/GlobalVariable.h?rev=49574&r1=49573&r2=49574&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/GlobalVariable.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/GlobalVariable.h Sat Apr 12 00:09:00 2008
@@ -78,7 +78,11 @@
Initializer, Name, InsertBefore,
ThreadLocal, AddressSpace);
}
-
+
+ ~GlobalVariable() {
+ NumOperands = 1; // FIXME: needed by operator delete
+ }
+
/// Provide fast operand accessors
DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
More information about the llvm-commits
mailing list