[all-commits] [llvm/llvm-project] e8fb47: [clang][Interp] Don't call getSource() on function...

Timm Bäder via All-commits all-commits at lists.llvm.org
Fri May 5 03:02:28 PDT 2023


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

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

  Log Message:
  -----------
  [clang][Interp] Don't call getSource() on functions without a body

For builtin functions, we create a Function instance without a body or
code. When emitting diagnostics from them, we need a proper SourceInfo
to point to, but the only thing we can use is the call site of the
builtin function.

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




More information about the All-commits mailing list