[PATCH] D121736: Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO

Zequan Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 23 16:11:27 PDT 2022


zequanwu added a comment.
Herald added a subscriber: pmatos.

Hi, this causes crash on Mac building bot.
Here is the reduced repro:

`opt -lower-global-dtors /tmp/reduced.ll -o /dev/null `

  $ cat /tmp/reduced.ll
  %struct.mach_header = type { i32, i32, i32, i32, i32, i32, i32 }
  
  @__dso_handle = external global %struct.mach_header
  @llvm.global_dtors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 1, void ()* undef, i8* null }]


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121736/new/

https://reviews.llvm.org/D121736



More information about the cfe-commits mailing list