Revert the ConstantInt constructors back to their 2.5 forms where possible, thanks...
[oota-llvm.git] / tools / bugpoint / ExtractFunction.cpp
index f315f672ecbca430eec89b10db20c35dcf74826e..f0e9af7a63fd6c6611aa87b264df3326c0502165 100644 (file)
@@ -185,7 +185,7 @@ static Constant *GetTorInit(std::vector<std::pair<Function*, int> > &TorList) {
   std::vector<Constant*> ArrayElts;
   for (unsigned i = 0, e = TorList.size(); i != e; ++i) {
     std::vector<Constant*> Elts;
-    Elts.push_back(Context.getConstantInt(Type::Int32Ty, TorList[i].second));
+    Elts.push_back(ConstantInt::get(Type::Int32Ty, TorList[i].second));
     Elts.push_back(TorList[i].first);
     ArrayElts.push_back(Context.getConstantStruct(Elts));
   }