[clang][Interp] Check This pointer without creating InterpFrame
authorTimm Bäder <tbaeder@redhat.com>
Thu, 26 Jan 2023 13:07:46 +0000 (14:07 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Fri, 31 Mar 2023 14:18:15 +0000 (16:18 +0200)
commit943ef06420105cad23e3caea24d6a274cdb0316f
tree693642a66cb4e8ec0413188d682b7e8f794e873e
parentac409e475e6959156c8ee758e6d9d0619a1c735c
[clang][Interp] Check This pointer without creating InterpFrame

The InterpFrame was only created so early so we could use getThis().
However, we need to know the Function when creating the InterpFrame and
in the case of virtual functions, we need to determine what function to
call at interpretation time.

Get the This pointer ourselves and just create the InterpFrame later.

Differential Revision: https://reviews.llvm.org/D142617
clang/lib/AST/Interp/Interp.h
clang/lib/AST/Interp/InterpStack.cpp
clang/lib/AST/Interp/InterpStack.h