diff --git a/mlir/include/mlir/IR/OperationSupport.h b/mlir/include/mlir/IR/OperationSupport.h index f801947f2a25..c4ba2f324df7 100644 --- a/mlir/include/mlir/IR/OperationSupport.h +++ b/mlir/include/mlir/IR/OperationSupport.h @@ -80,8 +80,8 @@ public: Dest as() const { static_assert(std::is_pointer_v, "PropertyRef::as() requires T to be a pointer type"); - using RawType = std::remove_cv_t>; - assert((typeID == TypeID::get()) && + assert((typeID == + TypeID::get>>()) && "Property type mismatch: TypeID does not match requested type"); return static_cast(data); }