Skip to content

Commit db57c2a

Browse files
committed
use var instead of calling getType
1 parent 389e865 commit db57c2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,14 +1586,14 @@ LogicalResult NVVM::ReduxOp::verify() {
15861586
if (!reduxType.isInteger(32))
15871587
return emitOpError("'")
15881588
<< stringifyEnum(kind) << "' redux kind unsupported with "
1589-
<< getType() << " type. Only supported type is 'i32'.";
1589+
<< reduxType << " type. Only supported type is 'i32'.";
15901590
break;
15911591
case NVVM::ReduxKind::FMIN:
15921592
case NVVM::ReduxKind::FMAX:
15931593
if (!reduxType.isF32())
15941594
return emitOpError("'")
15951595
<< stringifyEnum(kind) << "' redux kind unsupported with "
1596-
<< getType() << " type. Only supported type is 'f32'.";
1596+
<< reduxType << " type. Only supported type is 'f32'.";
15971597
break;
15981598
}
15991599

0 commit comments

Comments
 (0)