diff --git a/mlir/include/mlir/Support/DebugAction.h b/mlir/include/mlir/Support/DebugAction.h --- a/mlir/include/mlir/Support/DebugAction.h +++ b/mlir/include/mlir/Support/DebugAction.h @@ -193,7 +193,8 @@ public: class Handler : public DebugActionManager::HandlerBase { public: - Handler() : HandlerBase(TypeID::get()) {} + Handler() + : HandlerBase(TypeID::get::Handler>()) {} /// This hook allows for controlling whether an action should execute or /// not. `parameters` correspond to the set of values provided by the @@ -205,7 +206,8 @@ /// Provide classof to allow casting between handler types. static bool classof(const DebugActionManager::HandlerBase *handler) { - return handler->getHandlerID() == TypeID::get(); + return handler->getHandlerID() == + TypeID::get::Handler>(); } };