[all-commits] [llvm/llvm-project] 943ef0: [clang][Interp] Check This pointer without creatin...

Timm Bäder via All-commits all-commits at lists.llvm.org
Fri Mar 31 07:18:45 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 943ef06420105cad23e3caea24d6a274cdb0316f
      https://github.com/llvm/llvm-project/commit/943ef06420105cad23e3caea24d6a274cdb0316f
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2023-03-31 (Fri, 31 Mar 2023)

  Changed paths:
    M clang/lib/AST/Interp/Interp.h
    M clang/lib/AST/Interp/InterpStack.cpp
    M clang/lib/AST/Interp/InterpStack.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list