[all-commits] [llvm/llvm-project] bf3a27: [CodeGen] Report a normal instead of fatal error f...

john-brawn-arm via All-commits all-commits at lists.llvm.org
Tue Mar 9 02:56:56 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf3a27196085e4fbfdb7095539a4d030a568aee7
      https://github.com/llvm/llvm-project/commit/bf3a27196085e4fbfdb7095539a4d030a568aee7
  Author: John Brawn <john.brawn at arm.com>
  Date:   2021-03-09 (Tue, 09 Mar 2021)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/MC/MCStreamer.cpp
    M llvm/test/CodeGen/X86/equiv_with_vardef.ll
    M llvm/test/CodeGen/X86/label-redefinition.ll
    A llvm/test/CodeGen/X86/symbol-redefinition.ll
    M llvm/test/CodeGen/XCore/section-name.ll
    M llvm/test/MC/ELF/section-sym-err.s

  Log Message:
  -----------
  [CodeGen] Report a normal instead of fatal error for label redefinition

A symbol being redefined as a label is something that can happen as a result of
ordinary input, so it shouldn't cause a fatal error. Also adjust the error
message to match the one you get when a symbol is redefined as a variable.

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




More information about the All-commits mailing list