commit | 35d69b05b3f8584b8646e7e77faec9a8c0ebf9c2 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Tue Nov 18 18:43:07 2008 +0000 |
committer | Devang Patel <dpatel@apple.com> | Tue Nov 18 18:43:07 2008 +0000 |
tree | a3c02947012716ec81769d6cd4589da0acabc5d4 | |
parent | c0612a24ef151b42f850b18cebf4e5621470a255 [diff] [blame] |
Initialize MallocFunc and FreeFunc properly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59538 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp index 792e98e..6c59926 100644 --- a/lib/Transforms/Utils/LowerAllocations.cpp +++ b/lib/Transforms/Utils/LowerAllocations.cpp
@@ -58,7 +58,7 @@ 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