[llvm-commits] [llvm] r49585 - /llvm/branches/ggreif/use-diet/lib/VMCore/BasicBlock.cpp

Gabor Greif ggreif at gmail.com
Sat Apr 12 13:16:24 PDT 2008


Author: ggreif
Date: Sat Apr 12 15:16:24 2008
New Revision: 49585

URL: http://llvm.org/viewvc/llvm-project?rev=49585&view=rev
Log:
fix deallocation of BasicBlock

Modified:
    llvm/branches/ggreif/use-diet/lib/VMCore/BasicBlock.cpp

Modified: llvm/branches/ggreif/use-diet/lib/VMCore/BasicBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/VMCore/BasicBlock.cpp?rev=49585&r1=49584&r2=49585&view=diff

==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/BasicBlock.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/BasicBlock.cpp Sat Apr 12 15:16:24 2008
@@ -101,6 +101,7 @@
   assert(getParent() == 0 && "BasicBlock still linked into the program!");
   dropAllReferences();
   InstList.clear();
+  NumOperands = 1; // FIXME: needed for deallocate
 }
 
 void BasicBlock::setParent(Function *parent) {





More information about the llvm-commits mailing list