[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LowerAllocations.cpp

Reid Spencer reid at x10sys.com
Tue Dec 7 00:11:46 PST 2004



Changes in directory llvm/lib/Transforms/Scalar:

LowerAllocations.cpp updated: 1.49 -> 1.50
---
Log message:

For PR387: http://llvm.cs.uiuc.edu/PR387 :\
Add doInitialization method to avoid overloaded virtuals

---
Diffs of the changes:  (+3 -0)

Index: llvm/lib/Transforms/Scalar/LowerAllocations.cpp
diff -u llvm/lib/Transforms/Scalar/LowerAllocations.cpp:1.49 llvm/lib/Transforms/Scalar/LowerAllocations.cpp:1.50
--- llvm/lib/Transforms/Scalar/LowerAllocations.cpp:1.49	Wed Sep  1 17:55:36 2004
+++ llvm/lib/Transforms/Scalar/LowerAllocations.cpp	Tue Dec  7 02:11:36 2004
@@ -37,6 +37,9 @@
     /// a module contains a declaration for a malloc and a free function.
     ///
     bool doInitialization(Module &M);
+
+    virtual bool doInitialization(Function&f) 
+      { return BasicBlockPass::doInitialization(f); }
     
     /// runOnBasicBlock - This method does the actual work of converting
     /// instructions over, assuming that the pass has already been initialized.






More information about the llvm-commits mailing list