From a13f1f38fa9942b04c3f20eb1743e5c1cacabdb5 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 18 Nov 2008 18:43:07 +0000 Subject: Initialize MallocFunc and FreeFunc properly. llvm-svn: 59538 --- llvm/lib/Transforms/Utils/LowerAllocations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Utils/LowerAllocations.cpp b/llvm/lib/Transforms/Utils/LowerAllocations.cpp index 792e98ea428..6c599260171 100644 --- a/llvm/lib/Transforms/Utils/LowerAllocations.cpp +++ b/llvm/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 -- cgit v1.2.3