Skip to content

Commit 4c97120

Browse files
committed
Format the code
1 parent 27eaf94 commit 4c97120

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clang/lib/CIR/CodeGen/CIRGenExprConstant.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,7 @@ mlir::Attribute ConstantEmitter::tryEmitPrivate(const APValue &value,
331331

332332
mlir::Attribute filler;
333333
if (value.hasArrayFiller()) {
334-
filler =
335-
tryEmitPrivate(value.getArrayFiller(), arrayElementTy);
334+
filler = tryEmitPrivate(value.getArrayFiller(), arrayElementTy);
336335
if (!filler)
337336
return {};
338337
}
@@ -363,8 +362,7 @@ mlir::Attribute ConstantEmitter::tryEmitPrivate(const APValue &value,
363362
elements.push_back(elementTyped);
364363
}
365364

366-
mlir::TypedAttr typedFiller =
367-
llvm::cast_or_null<mlir::TypedAttr>(filler);
365+
mlir::TypedAttr typedFiller = llvm::cast_or_null<mlir::TypedAttr>(filler);
368366
if (filler && !typedFiller)
369367
cgm.errorNYI("array filler should always be typed");
370368

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)