[llvm] 8e058fe - Fix gcc "enumeral and non-enumeral type in conditional expression" warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 3 04:43:40 PDT 2020
Author: Simon Pilgrim
Date: 2020-06-03T12:43:08+01:00
New Revision: 8e058feae0b0d07cd86257f0aa3154acfa887fe0
URL: https://github.com/llvm/llvm-project/commit/8e058feae0b0d07cd86257f0aa3154acfa887fe0
DIFF: https://github.com/llvm/llvm-project/commit/8e058feae0b0d07cd86257f0aa3154acfa887fe0.diff
LOG: Fix gcc "enumeral and non-enumeral type in conditional expression" warning. NFCI.
Added:
Modified:
llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
index fc0154d414fb..9c317e3f8840 100644
--- a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
+++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
@@ -238,7 +238,7 @@ unsigned MipsELFObjectWriter::getRelocType(MCContext &Ctx,
case FK_Data_8:
return IsPCRel
? setRTypes(ELF::R_MIPS_PC32, ELF::R_MIPS_64, ELF::R_MIPS_NONE)
- : ELF::R_MIPS_64;
+ : (unsigned)ELF::R_MIPS_64;
}
if (IsPCRel) {
More information about the llvm-commits
mailing list