This is an archive of the discontinued LLVM Phabricator instance.

[libc] get_table_negative cannot be constexpr
ClosedPublic

Authored by gchatelet on Jan 4 2023, 4:09 AM.

Details

Summary

GCC complains about if conditions not being constant expressions.
As-is get_table_negative cannot be marked constexpr.

Diff Detail

Event Timeline

gchatelet created this revision.Jan 4 2023, 4:09 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 4 2023, 4:09 AM
gchatelet requested review of this revision.Jan 4 2023, 4:09 AM
lntue accepted this revision.Jan 5 2023, 6:24 AM
This revision is now accepted and ready to land.Jan 5 2023, 6:24 AM
This revision was automatically updated to reflect the committed changes.