[all-commits] [llvm/llvm-project] 30f96a: [clang][Interp] Properly identify not-yet-defined ...

Timm Bäder via All-commits all-commits at lists.llvm.org
Thu Mar 30 22:27:29 PDT 2023

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

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeEmitter.cpp
    M clang/lib/AST/Interp/ByteCodeExprGen.cpp
    M clang/lib/AST/Interp/Function.h
    M clang/test/AST/Interp/functions.cpp

  Log Message:
  [clang][Interp] Properly identify not-yet-defined functions

Since we now handle functions without a body as well, we can't just use
getHasBody() anymore. Funtions that haven't been defined yet are those
that don't have a body *and* aren't valid.

Also, just pass the information about whether the Function has a body or
not along from the FunctionDecl.

Differential Revision: https://reviews.llvm.org/D141591

More information about the All-commits mailing list