[all-commits] [llvm/llvm-project] 435dbb: [CIR] Fix a problem with global array dtor lowerin...

Andy Kaylor via All-commits all-commits at lists.llvm.org
Mon Nov 24 14:49:16 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 435dbbacad475b12b6cae0a8296e8a46ea684812
      https://github.com/llvm/llvm-project/commit/435dbbacad475b12b6cae0a8296e8a46ea684812
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2025-11-24 (Mon, 24 Nov 2025)

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

  Log Message:
  -----------
  [CIR] Fix a problem with global array dtor lowering (#169416)

In the LoweringPrepare pass, the handling for global array destructor
lowering was mishandling the insertion point, so that if this code
needed to create a declaration for the __cxa_atexit function, that
declaration was being created in the dtor region, rather than at module
scope. This change fixes that.



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