[all-commits] [llvm/llvm-project] 5dc1fd: [CIR] Add address space casts for pointer argument...

Jan Leyonberg via All-commits all-commits at lists.llvm.org
Wed Apr 15 14:55:30 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5dc1fd4c3cee70cbace96ba085abeccae7c67c22
      https://github.com/llvm/llvm-project/commit/5dc1fd4c3cee70cbace96ba085abeccae7c67c22
  Author: Jan Leyonberg <jan_sjodin at yahoo.com>
  Date:   2026-04-15 (Wed, 15 Apr 2026)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenCall.cpp
    A clang/test/CIR/CodeGen/amdgpu-call-addrspace-cast.cpp

  Log Message:
  -----------
  [CIR] Add address space casts for pointer arguments when creating a call (#192303)

This patch checks if the expected type for an argument is the same as
the actual type. If types are pointers but with different address spaces
then add an address space cast to make the pointer types match.

Assised-by: Cursor / Claude Opus 4.6



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