We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d7af09 commit 9d8950aCopy full SHA for 9d8950a
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -2920,7 +2920,7 @@ class InsertOpConstantFolder final : public OpRewritePattern<InsertOp> {
2920
/// Converts the expected type to an IntegerAttr if there's
2921
/// a mismatch.
2922
Attribute convertIntegerAttr(Attribute attr, Type expectedType) const {
2923
- if (auto intAttr = attr.dyn_cast<IntegerAttr>()) {
+ if (auto intAttr = mlir::dyn_cast<IntegerAttr>(attr)) {
2924
if (intAttr.getType() != expectedType)
2925
return IntegerAttr::get(expectedType, intAttr.getInt());
2926
}
0 commit comments