This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Handle InitListExprs of composite type
AbandonedPublic

Authored by tbaeder on Jun 24 2023, 12:56 AM.

Details

Summary
They might appear freestanding, not as part of an initializer. In that
case, we need to create a temporary variable and return a pointer to it.

The test case added doesn't work yet since passing structs by value to functions is broken right now, I will fix that in a follow-up patch.

Diff Detail

Event Timeline

tbaeder created this revision.Jun 24 2023, 12:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2023, 12:56 AM
tbaeder requested review of this revision.Jun 24 2023, 12:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2023, 12:56 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript