This is an archive of the discontinued LLVM Phabricator instance.

[Clang] Fix a crash when an invalid immediate function call appears in a cast
ClosedPublic

Authored by cor3ntin on Aug 24 2023, 6:56 AM.

Diff Detail

Event Timeline

cor3ntin created this revision.Aug 24 2023, 6:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2023, 6:56 AM
cor3ntin requested review of this revision.Aug 24 2023, 6:56 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 24 2023, 6:56 AM
cor3ntin updated this revision to Diff 553109.Aug 24 2023, 6:58 AM

Remove accidentyally commited change

erichkeane accepted this revision.Aug 24 2023, 7:28 AM

1 nit that the build bots caught, else I'm happy.

clang/lib/Sema/SemaExpr.cpp
18364
This revision is now accepted and ready to land.Aug 24 2023, 7:28 AM
Fznamznon accepted this revision.Aug 24 2023, 7:31 AM
shafik added a subscriber: shafik.Aug 24 2023, 8:02 AM
shafik added inline comments.
clang/test/SemaCXX/cxx2a-consteval.cpp
1120

Another variety maybe worthing adding a test for

int k() { return h{nullptr}; }
shafik accepted this revision.Aug 24 2023, 8:04 AM
cor3ntin updated this revision to Diff 553381.Aug 24 2023, 11:46 PM

Address comments

This revision was landed with ongoing or failed builds.Aug 24 2023, 11:51 PM
This revision was automatically updated to reflect the committed changes.