[PATCH] D134523: [clang][Interp] Fix copy constructors with record array members

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 23 02:46:05 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.

Previously, we were only handling arrays of arrays because we only called `visitArrayInitializer()` when initializing a non-primitive array member. Change that to recurse into `visitInitializer()` and fix the bytecodegen for `CXXConstructExpr` with non-primitive field types.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134523

Files:
  clang/lib/AST/Interp/ByteCodeExprGen.cpp
  clang/lib/AST/Interp/Interp.h
  clang/lib/AST/Interp/Pointer.cpp
  clang/test/AST/Interp/records.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134523.462429.patch
Type: text/x-patch
Size: 6159 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220923/1927a1f8/attachment.bin>


More information about the cfe-commits mailing list