[all-commits] [llvm/llvm-project] 0ec5fc: [M68k][NFC] Rename M68kOperand::Kind to KindTy
Ricky Taylor via All-commits
all-commits at lists.llvm.org
Mon Aug 30 21:41:06 PDT 2021
Branch: refs/heads/release/13.x
Home: https://github.com/llvm/llvm-project
Commit: 0ec5fc44ee05ea47e353e6a7eb5c2acc84004515
https://github.com/llvm/llvm-project/commit/0ec5fc44ee05ea47e353e6a7eb5c2acc84004515
Author: Ricky Taylor <rickytaylor26 at gmail.com>
Date: 2021-08-30 (Mon, 30 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
(cherry picked from commit f659b6b1fa43ffb8c95dbbf767ef57f6e964e7f6)
More information about the All-commits
mailing list