[llvm-commits] [llvm] r59538 - /llvm/trunk/lib/Transforms/Utils/LowerAllocations.cpp

Devang Patel dpatel at apple.com
Tue Nov 18 10:43:10 PST 2008


Author: dpatel
Date: Tue Nov 18 12:43:07 2008
New Revision: 59538

URL: http://llvm.org/viewvc/llvm-project?rev=59538&view=rev
Log:
Initialize MallocFunc and FreeFunc properly.

Modified:
    llvm/trunk/lib/Transforms/Utils/LowerAllocations.cpp

Modified: llvm/trunk/lib/Transforms/Utils/LowerAllocations.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LowerAllocations.cpp?rev=59538&r1=59537&r2=59538&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LowerAllocations.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LowerAllocations.cpp Tue Nov 18 12:43:07 2008
@@ -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





More information about the llvm-commits mailing list