[llvm] [mlir] eliminating g++ warnings (PR #105520)
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 16 11:15:39 PDT 2024
================
@@ -2820,7 +2820,7 @@ void AsmPrinter::emitJumpTableSizesSection(const MachineJumpTableInfo *MJTI,
if (isElf) {
MCSymbolELF *LinkedToSym = dyn_cast<MCSymbolELF>(CurrentFnSym);
- int Flags = F.hasComdat() ? ELF::SHF_GROUP : 0;
+ int Flags = F.hasComdat() ? (int)ELF::SHF_GROUP : 0;
----------------
kuhar wrote:
Prefer static cast here
https://github.com/llvm/llvm-project/pull/105520
More information about the llvm-commits
mailing list