[all-commits] [llvm/llvm-project] f659b6: [M68k][NFC] Rename M68kOperand::Kind to KindTy

Ricky Taylor via All-commits all-commits at lists.llvm.org
Wed Aug 25 14:25:14 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f659b6b1fa43ffb8c95dbbf767ef57f6e964e7f6
      https://github.com/llvm/llvm-project/commit/f659b6b1fa43ffb8c95dbbf767ef57f6e964e7f6
  Author: Ricky Taylor <rickytaylor26 at gmail.com>
  Date:   2021-08-25 (Wed, 25 Aug 2021)

  Changed paths:
    M llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp

  Log Message:
  -----------
  [M68k][NFC] Rename M68kOperand::Kind to KindTy

Rename the M68kOperand::Type enumeration to KindTy to avoid ambiguity
with the Kind field when referencing enumeration values e.g.
`Kind::Value`.

This works around a compilation error under GCC 5, where GCC won't
lookup enum class values if you have a similarly named field
(see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60994).

The error in question is:
`M68kAsmParser.cpp:857:8: error: 'Kind' is not a class, namespace, or enumeration`

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




More information about the All-commits mailing list