diff --git a/mlir/include/mlir/IR/OpBase.td b/mlir/include/mlir/IR/OpBase.td --- a/mlir/include/mlir/IR/OpBase.td +++ b/mlir/include/mlir/IR/OpBase.td @@ -361,7 +361,9 @@ class ConfinedType predicates, string summary = "", string cppClassName = "::mlir::Type"> : Type< And, - summary, cppClassName>; + summary, cppClassName> { + let cppClassName = type.cppClassName; +} // Integer types.