Skip to content

Commit 76abef6

Browse files
[CodeGen] Remove an unnecessary cast (NFC) (llvm#151901)
getOpcode() already returns unsigned.
1 parent 6f74a44 commit 76abef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/TargetInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ static bool canCombine(MachineBasicBlock &MBB, MachineOperand &MO,
993993
MI = MRI.getUniqueVRegDef(MO.getReg());
994994
// And it needs to be in the trace (otherwise, it won't have a depth).
995995
if (!MI || MI->getParent() != &MBB ||
996-
((unsigned)MI->getOpcode() != CombineOpc && CombineOpc != 0))
996+
(MI->getOpcode() != CombineOpc && CombineOpc != 0))
997997
return false;
998998
// Must only used by the user we combine with.
999999
if (!MRI.hasOneNonDBGUse(MI->getOperand(0).getReg()))

0 commit comments

Comments
 (0)