[all-commits] [llvm/llvm-project] f1c4f9: [CodeGen] Filter out available_externally aliases

Jonas Hahnfeld via All-commits all-commits at lists.llvm.org
Wed Feb 1 00:41:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f1c4f927f7c15b5efdc3589c050fd0513bf6b303
      https://github.com/llvm/llvm-project/commit/f1c4f927f7c15b5efdc3589c050fd0513bf6b303
  Author: Jonas Hahnfeld <jonas.hahnfeld at cern.ch>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    A llvm/test/CodeGen/Generic/available_externally_alias.ll

  Log Message:
  -----------
  [CodeGen] Filter out available_externally aliases

The Language Reference says that aliases can have available_externally
linkage if their aliasee is an available_externally global value. Using
this kind of aliases resulted in crashes during code generation, filter
them out (the same that the AsmPrinter also filters out GlobalVariables
in emitSpecialLLVMGlobal(); Functions are discarded in the machine pass
infrastructure).

Differential Revision: https://reviews.llvm.org/D142352




More information about the All-commits mailing list