diff --git a/mlir/include/mlir/IR/Matchers.h b/mlir/include/mlir/IR/Matchers.h index d1c2f94f2472..61796ff09ab1 100644 --- a/mlir/include/mlir/IR/Matchers.h +++ b/mlir/include/mlir/IR/Matchers.h @@ -101,7 +101,7 @@ struct constant_int_op_binder { if (type.isa()) { return attr_value_binder(bind_value).match(attr); } - if (type.isa()) { + if (type.isa() || type.isa()) { if (auto splatAttr = attr.dyn_cast()) { return attr_value_binder(bind_value) .match(splatAttr.getValue());