For PR387:\
authorReid Spencer <rspencer@reidspencer.com>
Tue, 7 Dec 2004 08:11:36 +0000 (08:11 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 7 Dec 2004 08:11:36 +0000 (08:11 +0000)
Add doInitialization method to avoid overloaded virtuals

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18602 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LowerAllocations.cpp

index f3c1a79052cb432fc0d0192a9a6ee8c49b0d5d00..3bbec3dfd96a510e3cfaaff01a689b46a8fcaae4 100644 (file)
@@ -37,6 +37,9 @@ namespace {
     /// 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.