diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-07 08:11:36 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-07 08:11:36 +0000 |
commit | 791a959e57e8474ad28421e65317de1efab85e6a (patch) | |
tree | 5379b7961829d941e6dbb44523bbfd4faae22bc7 /lib/Transforms/Utils/LowerAllocations.cpp | |
parent | 4a7ebfa4111305ea22fc753d4f029eed88149662 (diff) |
For PR387:\
Add doInitialization method to avoid overloaded virtuals
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerAllocations.cpp')
-rw-r--r-- | lib/Transforms/Utils/LowerAllocations.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp index f3c1a79052..3bbec3dfd9 100644 --- a/lib/Transforms/Utils/LowerAllocations.cpp +++ b/lib/Transforms/Utils/LowerAllocations.cpp @@ -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. |