[clang][Interp] Fix InterpFrame::describe() for This pointers
authorTimm Bäder <tbaeder@redhat.com>
Tue, 25 Oct 2022 09:13:47 +0000 (11:13 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Wed, 26 Oct 2022 06:48:55 +0000 (08:48 +0200)
commitf007c99ed12f15f23e39f02d0fcb71eecead9b97
treef6b3c19cc0115400f6b3e6892eeb085e13baddd8
parentf6f02e090072002674c85c9d015b42f61c41656e
[clang][Interp] Fix InterpFrame::describe() for This pointers

Since we pass this via the stack, we need to account for it when
desribing the stack frame (parameters). This fixes a previously
commented-out test case.

Differential Revision: https://reviews.llvm.org/D136670
clang/lib/AST/Interp/InterpFrame.cpp
clang/test/AST/Interp/records.cpp