[all-commits] [llvm/llvm-project] 9dae80: clang: Fix broken implicit cast to generic address...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Wed May 7 22:46:38 PDT 2025
Branch: refs/heads/users/arsenm/clang/opencl/fix-broken-generic-address-space-implicit-cast
Home: https://github.com/llvm/llvm-project
Commit: 9dae80954122301a24038d0993c70bb4a2043c3f
https://github.com/llvm/llvm-project/commit/9dae80954122301a24038d0993c70bb4a2043c3f
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