1
0
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:
Davide Italiano 2017-02-19 21:35:41 +00:00
parent 4f611ef630
commit deb9c1307c

View File

@ -44,10 +44,12 @@ static bool shouldScheduleAdjacent(const X86Subtarget &ST,
FuseInc FuseInc
} FuseKind; } FuseKind;
unsigned FirstOpcode = unsigned FirstOpcode = First
First ? First->getOpcode() : (unsigned)X86::INSTRUCTION_LIST_END; ? First->getOpcode()
: static_cast<unsigned>(X86::INSTRUCTION_LIST_END);
unsigned SecondOpcode = unsigned SecondOpcode =
Second ? Second->getOpcode() : (unsigned)X86::INSTRUCTION_LIST_END; Second ? Second->getOpcode()
: static_cast<unsigned>(X86::INSTRUCTION_LIST_END);
switch (SecondOpcode) { switch (SecondOpcode) {
default: default: