This is an archive of the discontinued LLVM Phabricator instance.

Fix #58322: Handlers for debug actions with equal parameter types must not override each other
ClosedPublic

Authored by tlongeri on Oct 13 2022, 3:50 PM.

Details

Summary

Also clean up redundant public access specifiers.

Diff Detail

Event Timeline

tlongeri created this revision.Oct 13 2022, 3:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 3:50 PM
tlongeri requested review of this revision.Oct 13 2022, 3:50 PM
mehdi_amini accepted this revision.Oct 13 2022, 3:55 PM
This revision is now accepted and ready to land.Oct 13 2022, 3:55 PM
tlongeri retitled this revision from Fix handlers for debug actions with equal parameter types overriding each other to Fix #58322: Handlers for debug actions with equal parameter types must not override each other.Oct 13 2022, 3:57 PM
tlongeri added inline comments.Oct 13 2022, 4:06 PM
mlir/include/mlir/Support/DebugAction.h
198

TypeID::get<Handler> fails to build in GCC. It works fine in Clang and MSVC. GCC thinks Handler can also be a template for some reason (bug?), and complains the call is ambiguous because it can match the template <template <typename> class> TypeID::get overload.

tlongeri updated this revision to Diff 467650.Oct 13 2022, 6:24 PM

Fix TypeID errors

tlongeri updated this revision to Diff 467658.Oct 13 2022, 6:44 PM

Actually fix the TypeID errors

rriddle added a comment.EditedOct 17 2022, 1:43 AM

Nice. Thanks for fixing this! Can you also update the documentation (DebugActions.md)?

rriddle accepted this revision.Oct 17 2022, 1:43 AM
tlongeri updated this revision to Diff 468264.Oct 17 2022, 11:12 AM

Updating documentation (DebugActions.md)