From 4f3096b6af12739bc399b30a19a2638a21b2539c Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 18 Nov 2008 18:43:07 +0000 Subject: [PATCH] Initialize MallocFunc and FreeFunc properly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59538 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/LowerAllocations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1