[clang][Interp] Protect Record creation against infinite recursion
authorTimm Bäder <tbaeder@redhat.com>
Thu, 27 Oct 2022 10:06:44 +0000 (12:06 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Fri, 11 Nov 2022 07:38:06 +0000 (08:38 +0100)
commit99d3ead44cfb21dca24c63a0b0731eaad54b491e
treed16da3fb5139298484ecae26456b2cf791d0c18f
parent0dcfd0ce020b4d5fb8d9eb549150d750a6bab68d
[clang][Interp] Protect Record creation against infinite recursion

This happens only in error cases, but we need to handle it anyway.

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