Revert r134893 and r134888 (and related patches in other trees). It was causing
[oota-llvm.git] / lib / Transforms / IPO / ArgumentPromotion.cpp
index 3288ee57c38523957b403c75a2a93723c6a61bb9..54a7f679e01cc4a84d0dbe92fbd81e6f4104fd97 100644 (file)
@@ -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<Type*> Params;
+  std::vector<const Type*> Params;
 
   typedef std::set<IndicesVector> ScalarizeTable;