Skip to content

Commit c67328b

Browse files
committed
Format the code
1 parent 27eaf94 commit c67328b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/lib/CIR/Dialect/IR/CIRAttrs.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ Attribute ConstArrayAttr::parse(AsmParser &parser, Type type) {
270270
unsigned zeros = 0;
271271
if (parser.parseOptionalComma().succeeded()) {
272272
if (parser.parseOptionalKeyword("trailing_zeros").succeeded()) {
273-
unsigned typeSize = mlir::cast<cir::ArrayType>(resultTy.value()).getSize();
273+
unsigned typeSize =
274+
mlir::cast<cir::ArrayType>(resultTy.value()).getSize();
274275
mlir::Attribute elts = resultVal.value();
275276
if (auto str = mlir::dyn_cast<mlir::StringAttr>(elts))
276277
zeros = typeSize - str.size();
@@ -286,7 +287,8 @@ Attribute ConstArrayAttr::parse(AsmParser &parser, Type type) {
286287
return {};
287288

288289
return parser.getChecked<ConstArrayAttr>(
289-
parser.getCurrentLocation(), parser.getContext(), resultTy.value(), resultVal.value(), zeros);
290+
parser.getCurrentLocation(), parser.getContext(), resultTy.value(),
291+
resultVal.value(), zeros);
290292
}
291293

292294
void ConstArrayAttr::print(AsmPrinter &printer) const {

0 commit comments

Comments
 (0)