[PATCH] D135013: [clang][Interp] Array initialization via ImplicitValueInitExpr
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 14 23:49:44 PDT 2022
tbaeder added a comment.
In D135013#3860317 <https://reviews.llvm.org/D135013#3860317>, @shafik wrote:
> I found a way to get `ImplictValueInitExpr` for a record: https://godbolt.org/z/Eqf9Gz1G4
>
> I am not sure if we can achieve the same in C++ b/c value init of a class break down to default init or zero init.
Does clang generate a default constructor in this case anyway, which the interpreter could use in this case? Or is it support to just `memset(0)` the entire struct instance?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135013/new/
https://reviews.llvm.org/D135013
More information about the cfe-commits
mailing list