This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Handle CXXParenListInitExprs
ClosedPublic

Authored by tbaeder on Jul 23 2023, 12:37 AM.

Diff Detail

Event Timeline

tbaeder created this revision.Jul 23 2023, 12:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2023, 12:37 AM
tbaeder requested review of this revision.Jul 23 2023, 12:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2023, 12:37 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
tbaeder updated this revision to Diff 543522.Jul 24 2023, 6:40 AM
cor3ntin added inline comments.Jul 27 2023, 12:49 AM
clang/lib/AST/Interp/ByteCodeExprGen.cpp
661

how could DiscardResult ever be true here (we return L655?)

tbaeder added inline comments.Jul 27 2023, 1:54 AM
clang/lib/AST/Interp/ByteCodeExprGen.cpp
661

Ah yes, you're right.

tbaeder updated this revision to Diff 544692.Jul 27 2023, 3:50 AM
tbaeder marked an inline comment as done.
cor3ntin accepted this revision.Jul 27 2023, 4:36 AM

LGTM, thanks!
But please look at the bot failures, i suppose you need to rebase before merging.
Also, can you try to add the new interpreter to test/SemaCXX/paren-list-agg-init.cpp ?

This revision is now accepted and ready to land.Jul 27 2023, 4:36 AM

Also, can you try to add the new interpreter to test/SemaCXX/paren-list-agg-init.cpp ?

Hmm no, looks like there's a problem with rvalue references.

This revision was landed with ongoing or failed builds.Sep 6 2023, 6:27 AM
This revision was automatically updated to reflect the committed changes.