[clang][Interp] Support destructors
authorTimm Bäder <tbaeder@redhat.com>
Thu, 5 Jan 2023 12:40:54 +0000 (13:40 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Sun, 5 Mar 2023 09:02:42 +0000 (10:02 +0100)
commit78e4237460bf58f3d6b75f275e0424f38e3b1d04
treeced92fc49022b315f044b1c2f4db11397dafef72
parent33ba940de0401c91b4d7e12d98972e6ba0f0f662
[clang][Interp] Support destructors

Use the existing local variable cleanup infrastructure to implement
destruction.

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