X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=tools%2Fbugpoint%2FExtractFunction.cpp;h=c2159dea4b032c846a400dfef6785a6c3c9be629;hb=1fd7096407d5e598ed3366a1141548e71273f1c5;hp=41704f9dcab9f11a43cd76273168237921c8a3be;hpb=3f53fa9a51c4ce7ba81170ca7ab2e49bd37281b0;p=oota-llvm.git diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp index 41704f9dcab..c2159dea4b0 100644 --- a/tools/bugpoint/ExtractFunction.cpp +++ b/tools/bugpoint/ExtractFunction.cpp @@ -187,9 +187,9 @@ static Constant *GetTorInit(std::vector > &TorList) { std::vector Elts; Elts.push_back(ConstantInt::get(Type::Int32Ty, TorList[i].second)); Elts.push_back(TorList[i].first); - ArrayElts.push_back(Context.getConstantStruct(Elts)); + ArrayElts.push_back(ConstantStruct::get(Elts)); } - return Context.getConstantArray(Context.getArrayType(ArrayElts[0]->getType(), + return ConstantArray::get(Context.getArrayType(ArrayElts[0]->getType(), ArrayElts.size()), ArrayElts); }