This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Fix Pointer::toAPValue() for expressions
ClosedPublic

Authored by tbaeder on Jan 16 2023, 9:00 AM.

Details

Summary

This is now relevant because we generate pointers for expressions more often, since MaterializeTemporaryExprs work.

Diff Detail

Event Timeline

tbaeder created this revision.Jan 16 2023, 9:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 9:00 AM
tbaeder requested review of this revision.Jan 16 2023, 9:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 9:00 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
tbaeder updated this revision to Diff 489581.Jan 16 2023, 9:07 AM

It's a bit involved since without working MaterializeTemporaryExprs, this code is a no-op, but without this code, the MTEs don't properly work, usually.

aaron.ballman accepted this revision.Jan 31 2023, 11:07 AM

LG given that other test coverage exists for this.

This revision is now accepted and ready to land.Jan 31 2023, 11:07 AM
This revision was landed with ongoing or failed builds.Feb 3 2023, 5:30 AM
This revision was automatically updated to reflect the committed changes.