[PATCH] D133856: [clang][Interp] Pass initializer through when creating variables

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 14 06:11:07 PDT 2022


tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, shafik, tahonermann.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133856

Files:
  clang/lib/AST/Interp/ByteCodeExprGen.cpp
  clang/lib/AST/Interp/Program.cpp
  clang/lib/AST/Interp/Program.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133856.460057.patch
Type: text/x-patch
Size: 4796 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220914/8c6b2993/attachment-0001.bin>


More information about the cfe-commits mailing list