This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Handle CXXNoexceptExprs
ClosedPublic

Authored by tbaeder on Jul 19 2023, 7:15 AM.

Diff Detail

Event Timeline

tbaeder created this revision.Jul 19 2023, 7:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2023, 7:15 AM
tbaeder requested review of this revision.Jul 19 2023, 7:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2023, 7:15 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
cor3ntin added inline comments.Jul 23 2023, 1:33 AM
clang/test/AST/Interp/literals.cpp
1037–1045

Can you either add tests with explicit expressions in the no except, or see if you can enable one of the existing test files?

tbaeder updated this revision to Diff 543265.Jul 23 2023, 2:25 AM
tbaeder marked an inline comment as done.
tbaeder added inline comments.
clang/test/AST/Interp/literals.cpp
1037–1045

Turns out I can.

tbaeder marked an inline comment as done.Jul 23 2023, 2:29 AM
tbaeder added inline comments.
clang/lib/AST/Interp/ByteCodeExprGen.cpp
1203

Looks like this is wrong.

tbaeder updated this revision to Diff 543266.Jul 23 2023, 2:34 AM

Always ignore the operand expression.

cor3ntin accepted this revision.Jul 25 2023, 7:30 AM

LGTM, thanks

This revision is now accepted and ready to land.Jul 25 2023, 7:30 AM
This revision was landed with ongoing or failed builds.Jul 26 2023, 3:24 AM
This revision was automatically updated to reflect the committed changes.