De-constify Types in StructType::get() and TargetData::getIntPtrType().
[oota-llvm.git] / tools / bugpoint / ExtractFunction.cpp
index 7ed15245c19055d71d1cb2447dedc4866614c057..9941add52e255747b080c265101d3f0ffec7630b 100644 (file)
@@ -173,7 +173,7 @@ void llvm::DeleteFunctionBody(Function *F) {
 static Constant *GetTorInit(std::vector<std::pair<Function*, int> > &TorList) {
   assert(!TorList.empty() && "Don't create empty tor list!");
   std::vector<Constant*> ArrayElts;
-  const Type *Int32Ty = Type::getInt32Ty(TorList[0].first->getContext());
+  Type *Int32Ty = Type::getInt32Ty(TorList[0].first->getContext());
   
   const StructType *STy =
     StructType::get(Int32Ty, TorList[0].first->getType(), NULL);