[all-commits] [llvm/llvm-project] 7ae6c4: [Sema] Fix bug in builtin AS override (#138141)

Joe Nash via All-commits all-commits at lists.llvm.org
Fri Jun 6 06:31:54 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ae6c4319eb49a58a13c423686a110afa554e92d
      https://github.com/llvm/llvm-project/commit/7ae6c4319eb49a58a13c423686a110afa554e92d
  Author: Joe Nash <joseph.nash at amd.com>
  Date:   2025-06-06 (Fri, 06 Jun 2025)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsAMDGPU.def
    M clang/lib/Sema/SemaExpr.cpp

  Log Message:
  -----------
  [Sema] Fix bug in builtin AS override (#138141)

Fix the logic in rewriteBuiltinFunctionDecl to work when the builtin
has a pointer parameter with an address space and one without a fixed
address space. A builtin fitting these criteria was recently added.
Change the attribute string to perform type checking on it, so without
the sema change compilation would fail with a wrong number of arguments
error.



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