Skip to content

Commit bc7b8e2

Browse files
committed
remve unncessary auto
1 parent 1dc0e63 commit bc7b8e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Conversion/MemRefToEmitC/MemRefToEmitC.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ struct ConvertGetGlobal final
159159
}
160160

161161
if (opTy.getRank() == 0) {
162-
auto lvalueType = emitc::LValueType::get(resultTy);
163-
auto globalLValue = rewriter.create<emitc::GetGlobalOp>(
162+
emitc::LValueType lvalueType = emitc::LValueType::get(resultTy);
163+
emitc::GetGlobalOp globalLValue = rewriter.create<emitc::GetGlobalOp>(
164164
op.getLoc(), lvalueType, operands.getNameAttr());
165-
auto pointerType = emitc::PointerType::get(resultTy);
165+
emitc::PointerType pointerType = emitc::PointerType::get(resultTy);
166166
rewriter.replaceOpWithNewOp<emitc::ApplyOp>(
167167
op, pointerType, rewriter.getStringAttr("&"), globalLValue);
168168
return success();

0 commit comments

Comments
 (0)