This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Pass initializer through when creating variables
ClosedPublic

Authored by tbaeder on Sep 14 2022, 6:11 AM.

Details

Summary

This is of course in preparation of https://reviews.llvm.org/D133753. I think this patch is needed no matter how the array filler approach ends up.

Pass the initializer of the variable through when creating variables. This way we can later inspect the initializer in Program::createDescriptor() for the array size.

Diff Detail

Event Timeline

tbaeder created this revision.Sep 14 2022, 6:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2022, 6:11 AM
tbaeder requested review of this revision.Sep 14 2022, 6:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2022, 6:11 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
erichkeane accepted this revision.Sep 19 2022, 9:03 AM

Seems fine to me

This revision is now accepted and ready to land.Sep 19 2022, 9:03 AM
This revision was automatically updated to reflect the committed changes.