Skip to content

Commit 6c153e6

Browse files
committed
use dyn_cast member function
1 parent 1b088b3 commit 6c153e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Polynomial/IR/PolynomialAttributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Attribute RingAttr::parse(AsmParser &parser, Type type) {
167167
if (failed(parser.parseEqual()))
168168
return {};
169169

170-
IntegerType iType = llvm::dyn_cast<IntegerType>(typeAttr.getValue());
170+
IntegerType iType = typeAttr.getValue().dyn_cast<IntegerType>();
171171
if (!iType) {
172172
parser.emitError(parser.getCurrentLocation(),
173173
"coefficientType must specify an integer type");

0 commit comments

Comments
 (0)