diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-27 22:29:26 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-27 22:29:26 +0000 |
commit | 45308b578b5eae549e5661d65f73a77d673755bd (patch) | |
tree | 378dfd215a15edca2cedd8c0b3b1e876bbc79426 /llvm/lib/VMCore/ConstantFold.cpp | |
parent | 31d9254f7a09091996595a76d58cf487eda575b7 (diff) | |
download | bcm5719-llvm-45308b578b5eae549e5661d65f73a77d673755bd.tar.gz bcm5719-llvm-45308b578b5eae549e5661d65f73a77d673755bd.zip |
Move ConstantStruct back to 2.5 API.
llvm-svn: 77266
Diffstat (limited to 'llvm/lib/VMCore/ConstantFold.cpp')
-rw-r--r-- | llvm/lib/VMCore/ConstantFold.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/ConstantFold.cpp b/llvm/lib/VMCore/ConstantFold.cpp index 6546dc70d80..61616f245ad 100644 --- a/llvm/lib/VMCore/ConstantFold.cpp +++ b/llvm/lib/VMCore/ConstantFold.cpp @@ -519,7 +519,7 @@ Constant *llvm::ConstantFoldInsertValueInstruction(LLVMContext &Context, Ops[i] = const_cast<Constant*>(Op); } if (isa<StructType>(AggTy)) - return Context.getConstantStruct(Ops); + return ConstantStruct::get(Ops); else return Context.getConstantArray(cast<ArrayType>(AggTy), Ops); } @@ -548,7 +548,7 @@ Constant *llvm::ConstantFoldInsertValueInstruction(LLVMContext &Context, Ops[i] = const_cast<Constant*>(Op); } if (isa<StructType>(AggTy)) - return Context.getConstantStruct(Ops); + return ConstantStruct::get(Ops); else return Context.getConstantArray(cast<ArrayType>(AggTy), Ops); } @@ -565,7 +565,7 @@ Constant *llvm::ConstantFoldInsertValueInstruction(LLVMContext &Context, } Constant *C; if (isa<StructType>(Agg->getType())) - C = Context.getConstantStruct(Ops); + C = ConstantStruct::get(Ops); else C = Context.getConstantArray(cast<ArrayType>(Agg->getType()), Ops); return C; |