Skip to content

Commit fbc2d06

Browse files
authored
[NFC][SPIRV] Remove useless static_cast (llvm#164239)
1 parent 7d356e9 commit fbc2d06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,9 @@ void SPIRVModuleAnalysis::collectFuncNames(MachineInstr &MI,
547547
if (MI.getOpcode() == SPIRV::OpDecorate) {
548548
// If it's got Import linkage.
549549
auto Dec = MI.getOperand(1).getImm();
550-
if (Dec == static_cast<unsigned>(SPIRV::Decoration::LinkageAttributes)) {
550+
if (Dec == SPIRV::Decoration::LinkageAttributes) {
551551
auto Lnk = MI.getOperand(MI.getNumOperands() - 1).getImm();
552-
if (Lnk == static_cast<unsigned>(SPIRV::LinkageType::Import)) {
552+
if (Lnk == SPIRV::LinkageType::Import) {
553553
// Map imported function name to function ID register.
554554
const Function *ImportedFunc =
555555
F->getParent()->getFunction(getStringImm(MI, 2));

0 commit comments

Comments
 (0)