This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Fix passing parameters of composite type
ClosedPublic

Authored by tbaeder on Jun 24 2023, 3:39 AM.

Details

Summary
We pass these as pointers, so we need to be careful not to emit pointers
to pointers when we emit visit DeclRefExprs pointing to parameters.

Diff Detail

Event Timeline

tbaeder created this revision.Jun 24 2023, 3:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2023, 3:39 AM
tbaeder requested review of this revision.Jun 24 2023, 3:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2023, 3:39 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
shafik added inline comments.Jun 26 2023, 11:17 AM
clang/lib/AST/Interp/ByteCodeEmitter.h
72

I don't understand the additional comment,

clang/lib/AST/Interp/Context.cpp
30 ↗(On Diff #534187)

left over debugging code?

56 ↗(On Diff #534187)

Left over debugging code?

tbaeder marked 3 inline comments as done.Jul 4 2023, 9:27 PM
tbaeder added inline comments.
clang/lib/AST/Interp/ByteCodeEmitter.h
72

It's supposed to be the types of the map, but I've removed the comment change locally.

clang/lib/AST/Interp/Context.cpp
30 ↗(On Diff #534187)

Yes

56 ↗(On Diff #534187)

Yes

aaron.ballman accepted this revision.Jul 5 2023, 7:08 AM

LGTM with debugging code removed and comments cleaned up.

This revision is now accepted and ready to land.Jul 5 2023, 7:08 AM
This revision was landed with ongoing or failed builds.Aug 17 2023, 3:08 AM
This revision was automatically updated to reflect the committed changes.
tbaeder marked 3 inline comments as done.