[PATCH] D135013: [clang][Interp] Array initialization via ImplicitValueInitExpr
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 13 23:21:40 PDT 2022
tbaeder added a comment.
Thanks for the reproducer!
================
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:748
+ } else {
+ assert(false && "default initializer for non-primitive type");
+ }
----------------
shafik wrote:
> I guess this covers both arrays and class types?
Yes. But now that I look at it, the check should probably be outside of the loop.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135013/new/
https://reviews.llvm.org/D135013
More information about the cfe-commits
mailing list