[clang][Interp] Properly destruct allocated Records
authorTimm Bäder <tbaeder@redhat.com>
Fri, 16 Sep 2022 16:59:00 +0000 (18:59 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Thu, 29 Sep 2022 10:50:56 +0000 (12:50 +0200)
commit84f1df8aacd0c3eb72f20f91c9af227b65d4c7da
tree8c47da6736530733b71560c5ac1e883b34dc5f54
parentd5360b932ecd6fc7ca45f89d7c87ffb39f7edfe2
[clang][Interp] Properly destruct allocated Records

We are otherwise leaking some memory the records might allocate
themselves.

Differential Revision: https://reviews.llvm.org/D134054
clang/lib/AST/Interp/Program.h
clang/test/AST/Interp/references.cpp