mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
[X86] Prefer static_cast<> to C-style cast. NFCI.
llvm-svn: 295617
This commit is contained in:
parent
4f611ef630
commit
deb9c1307c
@ -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<unsigned>(X86::INSTRUCTION_LIST_END);
|
||||
unsigned SecondOpcode =
|
||||
Second ? Second->getOpcode() : (unsigned)X86::INSTRUCTION_LIST_END;
|
||||
Second ? Second->getOpcode()
|
||||
: static_cast<unsigned>(X86::INSTRUCTION_LIST_END);
|
||||
|
||||
switch (SecondOpcode) {
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user