This is an archive of the discontinued LLVM Phabricator instance.

[ADT] Simplify getAsInteger (NFC)
ClosedPublic

Authored by kazu on Oct 15 2022, 1:07 PM.

Details

Summary

This patch replaces the std::enable_if_t trick with a "constexpr if"
so that the resulting code looks more like "normal" C++ code.

Diff Detail

Event Timeline

kazu created this revision.Oct 15 2022, 1:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 15 2022, 1:07 PM
kazu requested review of this revision.Oct 15 2022, 1:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 15 2022, 1:07 PM
dblaikie accepted this revision.Oct 15 2022, 1:27 PM

Sounds good to me, thanks!

This revision is now accepted and ready to land.Oct 15 2022, 1:27 PM
This revision was landed with ongoing or failed builds.Oct 15 2022, 2:08 PM
This revision was automatically updated to reflect the committed changes.