This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Implement remaining bits for MaterializeTemporaryExprs
ClosedPublic

Authored by tbaeder on Dec 26 2022, 3:09 AM.

Details

Summary

I still have this mixed up with the CompoundLiteral code since this is was I used for testing. I can split this up if needed of course.

Diff Detail

Event Timeline

tbaeder created this revision.Dec 26 2022, 3:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 26 2022, 3:09 AM
tbaeder requested review of this revision.Dec 26 2022, 3:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 26 2022, 3:09 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
tbaeder updated this revision to Diff 485769.Dec 31 2022, 7:03 AM
shafik added inline comments.Jan 12 2023, 1:04 PM
clang/lib/AST/Interp/ByteCodeExprGen.cpp
761
788

Maybe I am misreading the code but wouldn't int x = (int){10}; do? godbolt: https://godbolt.org/z/5WYE5h8dW

tbaeder updated this revision to Diff 488935.Jan 13 2023, 3:36 AM
tbaeder marked an inline comment as done.
tbaeder updated this revision to Diff 488936.Jan 13 2023, 3:44 AM
tbaeder marked an inline comment as done.
shafik accepted this revision.Jan 13 2023, 9:07 AM

LGTM

This revision is now accepted and ready to land.Jan 13 2023, 9:07 AM
This revision was landed with ongoing or failed builds.Mar 1 2023, 10:53 PM
This revision was automatically updated to reflect the committed changes.