diff --git a/lib/Target/X86/X86MacroFusion.cpp b/lib/Target/X86/X86MacroFusion.cpp index 1b1915ccac1..d09d8f36b77 100644 --- a/lib/Target/X86/X86MacroFusion.cpp +++ b/lib/Target/X86/X86MacroFusion.cpp @@ -44,10 +44,12 @@ static bool shouldScheduleAdjacent(const X86Subtarget &ST, FuseInc } FuseKind; - unsigned FirstOpcode = - First ? First->getOpcode() : (unsigned)X86::INSTRUCTION_LIST_END; + unsigned FirstOpcode = First + ? First->getOpcode() + : static_cast(X86::INSTRUCTION_LIST_END); unsigned SecondOpcode = - Second ? Second->getOpcode() : (unsigned)X86::INSTRUCTION_LIST_END; + Second ? Second->getOpcode() + : static_cast(X86::INSTRUCTION_LIST_END); switch (SecondOpcode) { default: