[all-commits] [llvm/llvm-project] df697a: [CIR] Set the linkage properly for the _GLOBAL__SU...

Erich Keane via All-commits all-commits at lists.llvm.org
Fri May 29 09:56:52 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df697a65e67300c72851dddb31f7e1b5e869c931
      https://github.com/llvm/llvm-project/commit/df697a65e67300c72851dddb31f7e1b5e869c931
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2026-05-29 (Fri, 29 May 2026)

  Changed paths:
    M clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
    M clang/test/CIR/CodeGen/global-array-dtor.cpp
    M clang/test/CIR/CodeGen/global-init.cpp
    M clang/test/CIR/CodeGen/static-members.cpp

  Log Message:
  -----------
  [CIR] Set the linkage properly for the _GLOBAL__SUB_I_ function (#200443)

These are required to have internal linkage, however we were generating
them with external linkage. This causes problems with linking together
files with the same name for one reason or another.

This patch does NOT change the module initializer linkage, which based
on all uses I could find, should remain external linkage.



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