Initialize MallocFunc and FreeFunc properly.
llvm-svn: 59538
diff --git a/llvm/lib/Transforms/Utils/LowerAllocations.cpp b/llvm/lib/Transforms/Utils/LowerAllocations.cpp
index 792e98e..6c59926 100644
--- a/llvm/lib/Transforms/Utils/LowerAllocations.cpp
+++ b/llvm/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