diff options
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp')
| -rw-r--r-- | clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp b/clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp index 8fe0d9b4..3d3030c 100644 --- a/clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp @@ -490,7 +490,7 @@ void AggExprEmitter::emitArrayInit(Address destPtr, cir::ArrayType arrayTy,    for (uint64_t i = 0; i != numInitElements; ++i) {      // Advance to the next element.      if (i > 0) { -      one = builder.getConstantInt(loc, cgf.PtrDiffTy, i); +      one = builder.getConstantInt(loc, cgf.ptrDiffTy, i);        element = builder.createPtrStride(loc, begin, one);      } @@ -512,7 +512,7 @@ void AggExprEmitter::emitArrayInit(Address destPtr, cir::ArrayType arrayTy,          cgf.getTypes().isZeroInitializable(elementType))) {      // Advance to the start of the rest of the array.      if (numInitElements) { -      one = builder.getConstantInt(loc, cgf.PtrDiffTy, 1); +      one = builder.getConstantInt(loc, cgf.ptrDiffTy, 1);        element = cir::PtrStrideOp::create(builder, loc, cirElementPtrType,                                           element, one);      } @@ -526,7 +526,7 @@ void AggExprEmitter::emitArrayInit(Address destPtr, cir::ArrayType arrayTy,      // Compute the end of array      cir::ConstantOp numArrayElementsConst = builder.getConstInt( -        loc, mlir::cast<cir::IntType>(cgf.PtrDiffTy), numArrayElements); +        loc, mlir::cast<cir::IntType>(cgf.ptrDiffTy), numArrayElements);      mlir::Value end = cir::PtrStrideOp::create(builder, loc, cirElementPtrType,                                                 begin, numArrayElementsConst); @@ -563,7 +563,7 @@ void AggExprEmitter::emitArrayInit(Address destPtr, cir::ArrayType arrayTy,            // Advance pointer and store them to temporary variable            cir::ConstantOp one = builder.getConstInt( -              loc, mlir::cast<cir::IntType>(cgf.PtrDiffTy), 1); +              loc, mlir::cast<cir::IntType>(cgf.ptrDiffTy), 1);            auto nextElement = cir::PtrStrideOp::create(                builder, loc, cirElementPtrType, currentElement, one);            cgf.emitStoreThroughLValue(RValue::get(nextElement), tmpLV); | 
