[clang][Interp] Fix using default copy constructors
authorTimm Bäder <tbaeder@redhat.com>
Wed, 21 Sep 2022 14:05:30 +0000 (16:05 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Fri, 14 Oct 2022 08:21:53 +0000 (10:21 +0200)
commit33b52836de6e093acea15f24b6ae633f969d194a
tree901a9ff682235e7253f23d4a15504619e567b70c
parentcb5f205828e696fb23cfe3de57af83d151ffad38
[clang][Interp] Fix using default copy constructors

Implement ArrayInitLoopExprs, which are used in copy constructors to
copy arrays. Also fix problems encountered while doing that.

Differential Revision: https://reviews.llvm.org/D134361
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/lib/AST/Interp/ByteCodeStmtGen.cpp
clang/test/AST/Interp/records.cpp