diff options
Diffstat (limited to 'lib/VMCore/ConstantFold.cpp')
-rw-r--r-- | lib/VMCore/ConstantFold.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp index 61616f2..3c0d94e 100644 --- a/lib/VMCore/ConstantFold.cpp +++ b/lib/VMCore/ConstantFold.cpp @@ -521,7 +521,7 @@ Constant *llvm::ConstantFoldInsertValueInstruction(LLVMContext &Context, if (isa<StructType>(AggTy)) return ConstantStruct::get(Ops); else - return Context.getConstantArray(cast<ArrayType>(AggTy), Ops); + return ConstantArray::get(cast<ArrayType>(AggTy), Ops); } if (isa<ConstantAggregateZero>(Agg)) { // Insertion of constant into aggregate zero @@ -550,7 +550,7 @@ Constant *llvm::ConstantFoldInsertValueInstruction(LLVMContext &Context, if (isa<StructType>(AggTy)) return ConstantStruct::get(Ops); else - return Context.getConstantArray(cast<ArrayType>(AggTy), Ops); + return ConstantArray::get(cast<ArrayType>(AggTy), Ops); } if (isa<ConstantStruct>(Agg) || isa<ConstantArray>(Agg)) { // Insertion of constant into aggregate constant @@ -567,7 +567,7 @@ Constant *llvm::ConstantFoldInsertValueInstruction(LLVMContext &Context, if (isa<StructType>(Agg->getType())) C = ConstantStruct::get(Ops); else - C = Context.getConstantArray(cast<ArrayType>(Agg->getType()), Ops); + C = ConstantArray::get(cast<ArrayType>(Agg->getType()), Ops); return C; } |