diff --git a/clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h b/clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h index 555b930f04c8..dc61fe08e96f 100644 --- a/clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h +++ b/clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h @@ -361,7 +361,8 @@ class CIRBaseBuilderTy : public mlir::OpBuilder { } mlir::TypedAttr getConstPtrAttr(mlir::Type t, int64_t v) { - auto val = mlir::IntegerAttr::get(mlir::IntegerType::get(t.getContext(), 64), v); + auto val = + mlir::IntegerAttr::get(mlir::IntegerType::get(t.getContext(), 64), v); return mlir::cir::ConstPtrAttr::get(getContext(), t.cast(), val); } diff --git a/clang/lib/CIR/CodeGen/ConstantInitBuilder.h b/clang/lib/CIR/CodeGen/ConstantInitBuilder.h index 5195a77decf1..1bddd1323473 100644 --- a/clang/lib/CIR/CodeGen/ConstantInitBuilder.h +++ b/clang/lib/CIR/CodeGen/ConstantInitBuilder.h @@ -197,7 +197,8 @@ class ConstantAggregateBuilderBase { /// Add a pointer of a specific type. void addPointer(mlir::cir::PointerType ptrTy, uint64_t value) { - auto val = mlir::IntegerAttr::get(mlir::IntegerType::get(ptrTy.getContext(), 64), value); + auto val = mlir::IntegerAttr::get( + mlir::IntegerType::get(ptrTy.getContext(), 64), value); add(mlir::cir::ConstPtrAttr::get(ptrTy.getContext(), ptrTy, val)); }