This is an archive of the discontinued LLVM Phabricator instance.

[libc][NFC] Use a function instead of templated static member functions for TYPE_DESC
ClosedPublic

Authored by gchatelet on Jan 4 2023, 6:15 AM.

Details

Summary

I'm surprised that clang accepts the current code.
It seems odd to me to specialize templated static member variables.

GCC rejects them: https://godbolt.org/z/3ecE9Ps7T

This patch is in the context of https://github.com/llvm/llvm-project/issues/59368

Diff Detail

Event Timeline

gchatelet created this revision.Jan 4 2023, 6:15 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 4 2023, 6:15 AM
gchatelet requested review of this revision.Jan 4 2023, 6:15 AM
This revision is now accepted and ready to land.Jan 4 2023, 10:19 AM