[llvm] r295615 - [AArch64] Prefer static_cast<> to C-style cast. NFCI.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 19 13:31:15 PST 2017
Author: davide
Date: Sun Feb 19 15:31:14 2017
New Revision: 295615
URL: http://llvm.org/viewvc/llvm-project?rev=295615&view=rev
Log:
[AArch64] Prefer static_cast<> to C-style cast. NFCI.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64MacroFusion.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64MacroFusion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64MacroFusion.cpp?rev=295615&r1=295614&r2=295615&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64MacroFusion.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64MacroFusion.cpp Sun Feb 19 15:31:14 2017
@@ -35,9 +35,11 @@ static bool shouldScheduleAdjacent(const
const MachineInstr *First,
const MachineInstr *Second) {
unsigned FirstOpcode =
- First ? First->getOpcode() : (unsigned)AArch64::INSTRUCTION_LIST_END;
+ First ? First->getOpcode()
+ : static_cast<unsigned>(AArch64::INSTRUCTION_LIST_END);
unsigned SecondOpcode =
- Second ? Second->getOpcode() : (unsigned)AArch64::INSTRUCTION_LIST_END;
+ Second ? Second->getOpcode()
+ : static_cast<unsigned>(AArch64::INSTRUCTION_LIST_END);
if (ST.hasArithmeticBccFusion())
// Fuse CMN, CMP, TST followed by Bcc.
More information about the llvm-commits
mailing list