[all-commits] [llvm/llvm-project] 8593c3: clang: Fix broken implicit cast to generic address...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed May 7 22:49:22 PDT 2025


  Branch: refs/heads/users/arsenm/clang/opencl/fix-broken-generic-address-space-implicit-cast
  Home:   https://github.com/llvm/llvm-project
  Commit: 8593c30aaa9ec9841ffd7172ef8c32e72f9bad4b
      https://github.com/llvm/llvm-project/commit/8593c30aaa9ec9841ffd7172ef8c32e72f9bad4b
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-05-08 (Thu, 08 May 2025)

  Changed paths:
    M clang/lib/CodeGen/CGDecl.cpp
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/test/CodeGenOpenCL/addr-space-struct-arg.cl
    M clang/test/CodeGenOpenCL/amdgcn-automatic-variable.cl
    M clang/test/CodeGenOpenCL/amdgpu-abi-struct-arg-byref.cl
    M clang/test/CodeGenOpenCL/amdgpu-enqueue-kernel.cl
    M clang/test/CodeGenOpenCL/amdgpu-nullptr.cl
    M clang/test/CodeGenOpenCL/blocks.cl
    M clang/test/CodeGenOpenCL/builtins-alloca.cl
    M clang/test/CodeGenOpenCL/builtins-amdgcn-gfx12.cl
    M clang/test/CodeGenOpenCL/implicit-addrspacecast-function-parameter.cl
    M clang/test/Index/pipe-size.cl

  Log Message:
  -----------
  clang: Fix broken implicit cast to generic address space

This fixes emitting undefined behavior where a 64-bit generic
pointer is written to a 32-bit slot allocated for a private pointer.
This can be seen in test/CodeGenOpenCL/amdgcn-automatic-variable.cl's
wrong_pointer_alloca.



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