diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 3a8cde7330efc..327e7f7f8a1ed 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -2849,7 +2849,7 @@ void AsmPrinter::emitJumpTableSizesSection(const MachineJumpTableInfo *MJTI, if (isElf) { MCSymbolELF *LinkedToSym = dyn_cast(CurrentFnSym); - int Flags = F.hasComdat() ? ELF::SHF_GROUP : 0; + int Flags = F.hasComdat() ? (unsigned)ELF::SHF_GROUP : 0; JumpTableSizesSection = OutContext.getELFSection( sectionName, ELF::SHT_LLVM_JT_SIZES, Flags, 0, GroupName, F.hasComdat(),