diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp index 792e98ea428..6c599260171 100644 --- a/lib/Transforms/Utils/LowerAllocations.cpp +++ b/lib/Transforms/Utils/LowerAllocations.cpp @@ -58,7 +58,7 @@ namespace { bool doInitialization(Module &M); virtual bool doInitialization(Function &F) { - return BasicBlockPass::doInitialization(F); + return doInitialization(*F.getParent()); } /// runOnBasicBlock - This method does the actual work of converting