Skip to content

Commit 4c3f725

Browse files
committed
replace auto
1 parent 1741198 commit 4c3f725

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2271,16 +2271,16 @@ void CIRGenItaniumCXXABI::emitRethrow(CIRGenFunction &CGF, bool isNoReturn) {
22712271
// `UnreachableOp` as the terminator. So, we branch from the current block
22722272
// to the rethrow block and create a block for the remaining operations.
22732273

2274-
auto currentBlock = builder.getInsertionBlock();
2275-
auto region = currentBlock->getParent();
2274+
mlir::Block *currentBlock = builder.getInsertionBlock();
2275+
mlir::Region *region = currentBlock->getParent();
22762276

22772277
if (currentBlock->empty()) {
22782278
builder.create<cir::ThrowOp>(loc, mlir::Value{},
22792279
mlir::FlatSymbolRefAttr{},
22802280
mlir::FlatSymbolRefAttr{});
22812281
builder.create<cir::UnreachableOp>(loc);
22822282
} else {
2283-
auto rethrowBlock = builder.createBlock(region);
2283+
mlir::Block *rethrowBlock = builder.createBlock(region);
22842284
builder.create<cir::ThrowOp>(loc, mlir::Value{},
22852285
mlir::FlatSymbolRefAttr{},
22862286
mlir::FlatSymbolRefAttr{});
@@ -2290,7 +2290,7 @@ void CIRGenItaniumCXXABI::emitRethrow(CIRGenFunction &CGF, bool isNoReturn) {
22902290
builder.create<cir::BrOp>(loc, rethrowBlock);
22912291
}
22922292

2293-
auto remBlock = builder.createBlock(region);
2293+
mlir::Block *remBlock = builder.createBlock(region);
22942294
// This will be erased during codegen, it acts as a placeholder for the
22952295
// operations to be inserted (if any)
22962296
builder.create<cir::ScopeOp>(loc, /*scopeBuilder=*/

0 commit comments

Comments
 (0)