forked from OSchip/llvm-project
Fix gcc "enumeral and non-enumeral type in conditional expression" warning. NFCI.
This commit is contained in:
parent
c438b257f1
commit
8e058feae0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue