summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-11 07:56:41 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-11 07:56:41 +0000
commit56cc1530eee144241e2987c4241cd8a31e07fb24 (patch)
treeb8cbcd15bd69d86d77eda140629758a1d1f72970 /llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
parentdbb221de11ae99badd786b819cc7cdda2e9930ea (diff)
downloadbcm5719-llvm-56cc1530eee144241e2987c4241cd8a31e07fb24.tar.gz
bcm5719-llvm-56cc1530eee144241e2987c4241cd8a31e07fb24.zip
De-constify Types in FunctionType::get().
llvm-svn: 134888
Diffstat (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/ArgumentPromotion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
index 54a7f679e01..3288ee57c38 100644
--- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -493,7 +493,7 @@ CallGraphNode *ArgPromotion::DoPromotion(Function *F,
// Start by computing a new prototype for the function, which is the same as
// the old function, but has modified arguments.
const FunctionType *FTy = F->getFunctionType();
- std::vector<const Type*> Params;
+ std::vector<Type*> Params;
typedef std::set<IndicesVector> ScalarizeTable;
OpenPOWER on IntegriCloud