This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Fix a crash when calling invalid constexpr functions
ClosedPublic

Authored by tbaeder on Apr 8 2023, 3:02 AM.

Diff Detail

Event Timeline

tbaeder created this revision.Apr 8 2023, 3:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2023, 3:02 AM
tbaeder requested review of this revision.Apr 8 2023, 3:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2023, 3:02 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Apr 8 2023, 5:34 AM

LGTM

clang/test/AST/Interp/functions.cpp
210–212

It'd be nice if we didn't issue duplicate notes in this case, but given that the behavior matches the reference implementation, it's reasonable enough.

This revision is now accepted and ready to land.Apr 8 2023, 5:34 AM
This revision was landed with ongoing or failed builds.Apr 8 2023, 6:38 AM
This revision was automatically updated to reflect the committed changes.