summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ExtractFunction.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-27 22:29:26 +0000
committerOwen Anderson <resistor@mac.com>2009-07-27 22:29:26 +0000
commit45308b578b5eae549e5661d65f73a77d673755bd (patch)
tree378dfd215a15edca2cedd8c0b3b1e876bbc79426 /llvm/tools/bugpoint/ExtractFunction.cpp
parent31d9254f7a09091996595a76d58cf487eda575b7 (diff)
downloadbcm5719-llvm-45308b578b5eae549e5661d65f73a77d673755bd.tar.gz
bcm5719-llvm-45308b578b5eae549e5661d65f73a77d673755bd.zip
Move ConstantStruct back to 2.5 API.
llvm-svn: 77266
Diffstat (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp')
-rw-r--r--llvm/tools/bugpoint/ExtractFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp
index 41704f9dcab..145942c8867 100644
--- a/llvm/tools/bugpoint/ExtractFunction.cpp
+++ b/llvm/tools/bugpoint/ExtractFunction.cpp
@@ -187,7 +187,7 @@ static Constant *GetTorInit(std::vector<std::pair<Function*, int> > &TorList) {
std::vector<Constant*> 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(),
ArrayElts.size()),
OpenPOWER on IntegriCloud