For PR950:
[oota-llvm.git] / tools / bugpoint / ExtractFunction.cpp
index 43e68404cb24d6f4d4e6664ed5cde5d4b2b071b3..34fa727f0e77c5ed65a638a1ccfc681fd8e66dc1 100644 (file)
@@ -180,7 +180,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(ConstantInt::get(Type::IntTy, TorList[i].second));
+    Elts.push_back(ConstantInt::get(Type::Int32Ty, TorList[i].second));
     Elts.push_back(TorList[i].first);
     ArrayElts.push_back(ConstantStruct::get(Elts));
   }