[all-commits] [llvm/llvm-project] 190b0f: [lld-macho] Stop crash when emitting personalities...

Alex Brachet via All-commits all-commits at lists.llvm.org
Fri May 20 14:41:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 190b0f42cf559af7299c53ff010b55bc9b4f5f8c
      https://github.com/llvm/llvm-project/commit/190b0f42cf559af7299c53ff010b55bc9b4f5f8c
  Author: Alex Brachet <abrachet at google.com>
  Date:   2022-05-20 (Fri, 20 May 2022)

  Changed paths:
    M lld/MachO/UnwindInfoSection.cpp
    M lld/test/MachO/weak-definition-gc.s

  Log Message:
  -----------
  [lld-macho] Stop crash when emitting personalities with -dead_strip

The <internal> symbol was tripping an assertion in getVA() because it
was not marked as used. Per the comment above that symbols creation,
dead stripping has already occurred so marking this symbol as used is
accurate.

Fixes https://github.com/llvm/llvm-project/issues/55565

Differential revision: https://reviews.llvm.org/D126072




More information about the All-commits mailing list