aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/ScalarReplAggregates.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-11-23 03:50:44 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-11-23 03:50:44 +0000
commit1df6ea033855b9c8ff66bdfc5f479fe8d2afb272 (patch)
tree298f6ed7fc58f4a04c353ae0efcb8b3b0bd2a0d7 /lib/Transforms/Scalar/ScalarReplAggregates.cpp
parentc11ad4295ebbb1add9f5ab4c406a2c73851341a4 (diff)
downloadexternal_llvm-1df6ea033855b9c8ff66bdfc5f479fe8d2afb272.zip
external_llvm-1df6ea033855b9c8ff66bdfc5f479fe8d2afb272.tar.gz
external_llvm-1df6ea033855b9c8ff66bdfc5f479fe8d2afb272.tar.bz2
Pull LLVMContext out of PromoteMemToReg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/ScalarReplAggregates.cpp')
-rw-r--r--lib/Transforms/Scalar/ScalarReplAggregates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index 2e3b694..047d279 100644
--- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -192,7 +192,7 @@ bool SROA::performPromotion(Function &F) {
if (Allocas.empty()) break;
- PromoteMemToReg(Allocas, DT, DF, F.getContext());
+ PromoteMemToReg(Allocas, DT, DF);
NumPromoted += Allocas.size();
Changed = true;
}