[all-commits] [llvm/llvm-project] c784ab: [clang][Interp] Delay compiling functions that don...

Timm Baeder via All-commits all-commits at lists.llvm.org
Fri Jul 12 08:50:04 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c784abf2007a98c5fea64a84b56fa21974983d90
      https://github.com/llvm/llvm-project/commit/c784abf2007a98c5fea64a84b56fa21974983d90
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2024-07-12 (Fri, 12 Jul 2024)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeEmitter.cpp
    M clang/test/AST/Interp/memberpointers.cpp

  Log Message:
  -----------
  [clang][Interp] Delay compiling functions that don't have a body yet

Sometimes, isDefined() returns true, even though the function doesn't
have a body yet, but will have one later. This is for example the case
when referring to a class member function via a member pointer before
the member function has been fully parsed. Reject them at first and
compile them later.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list