summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-11-18 18:43:07 +0000
committerDevang Patel <dpatel@apple.com>2008-11-18 18:43:07 +0000
commita13f1f38fa9942b04c3f20eb1743e5c1cacabdb5 (patch)
tree03b69e2a33cf86efd4a35d2399eba7271e7149f5
parentb4e7e859e29bfefc4dbdcdfcc57f6cd3c74c857f (diff)
downloadbcm5719-llvm-a13f1f38fa9942b04c3f20eb1743e5c1cacabdb5.tar.gz
bcm5719-llvm-a13f1f38fa9942b04c3f20eb1743e5c1cacabdb5.zip
Initialize MallocFunc and FreeFunc properly.
llvm-svn: 59538
-rw-r--r--llvm/lib/Transforms/Utils/LowerAllocations.cpp2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud