land David Blaikie's patch to de-constify Type, with a few tweaks.
[oota-llvm.git] / tools / bugpoint / ExtractFunction.cpp
index 9941add52e255747b080c265101d3f0ffec7630b..73b65ca94f70c5cbe2c3466d01710afb22387725 100644 (file)
@@ -175,7 +175,7 @@ static Constant *GetTorInit(std::vector<std::pair<Function*, int> > &TorList) {
   std::vector<Constant*> ArrayElts;
   Type *Int32Ty = Type::getInt32Ty(TorList[0].first->getContext());
   
-  const StructType *STy =
+  StructType *STy =
     StructType::get(Int32Ty, TorList[0].first->getType(), NULL);
   for (unsigned i = 0, e = TorList.size(); i != e; ++i) {
     Constant *Elts[] = {