[all-commits] [llvm/llvm-project] b200df: [clang][Interp] Fix calling invalid function pointers

Timm Baeder via All-commits all-commits at lists.llvm.org
Wed Feb 14 22:25:08 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b200dfc15904f0f7f19443fd5a399242c80213dc
      https://github.com/llvm/llvm-project/commit/b200dfc15904f0f7f19443fd5a399242c80213dc
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2024-02-15 (Thu, 15 Feb 2024)

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

  Log Message:
  -----------
  [clang][Interp] Fix calling invalid function pointers

Checking for isConstexpr() is wrong; we need to (try to) call
the function and let later code diagnose the failure accordingly.




More information about the All-commits mailing list