This is an archive of the discontinued LLVM Phabricator instance.

[FuncSpec] Allow ConstExprs that are function pointers
ClosedPublic

Authored by SjoerdMeijer on Oct 11 2021, 10:58 AM.

Details

Summary

This is a follow up of D110529 that disallowed constexprs. That change introduced a regression as this also disallowed constexprs that are function pointers, which which is actually one of the motivating examples we do want to support.

Diff Detail

Event Timeline

SjoerdMeijer created this revision.Oct 11 2021, 10:58 AM
SjoerdMeijer requested review of this revision.Oct 11 2021, 10:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2021, 10:58 AM
This revision is now accepted and ready to land.Oct 11 2021, 3:36 PM

Thanks for the speedy reviews!

This revision was landed with ongoing or failed builds.Oct 12 2021, 3:45 AM
This revision was automatically updated to reflect the committed changes.