Skip to content

Commit 315a32a

Browse files
[SPIRV] Remove a redundant cast (NFC) (llvm#165833)
FinalFlags is already of type unsigned.
1 parent da5a3c9 commit 315a32a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,7 @@ static void collectOtherInstr(MachineInstr &MI, SPIRV::ModuleAnalysisInfo &MAI,
613613
<< FinalFlags << "\n";
614614
MachineInstr *OrigMINonConst = const_cast<MachineInstr *>(OrigMI);
615615
MachineOperand &OrigFlagsOp = OrigMINonConst->getOperand(2);
616-
OrigFlagsOp =
617-
MachineOperand::CreateImm(static_cast<unsigned>(FinalFlags));
616+
OrigFlagsOp = MachineOperand::CreateImm(FinalFlags);
618617
return; // Merge done, so we found a duplicate; don't add it to MAI.MS
619618
}
620619
}

0 commit comments

Comments
 (0)