Skip to content

Commit cd049ef

Browse files
vmaksimojsji
authored andcommitted
Remove unused code
`TransOperand` is never called for StrideIdx (3), because the loop ends at MinOperandCount (3). Original commit: KhronosGroup/SPIRV-LLVM-Translator@dcd3052
1 parent 7a4574a commit cd049ef

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm-spirv/lib/SPIRV/LLVMToSPIRVDbgTran.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -804,9 +804,6 @@ SPIRVEntry *LLVMToSPIRVDbgTran::transDbgSubrangeType(const DISubrange *ST) {
804804
case CountIdx:
805805
IntNode = ST->getCount().get<ConstantInt *>();
806806
break;
807-
case StrideIdx:
808-
IntNode = ST->getStride().get<ConstantInt *>();
809-
break;
810807
}
811808
Ops[Idx] = IntNode ? SPIRVWriter->transValue(IntNode, nullptr)->getId()
812809
: getDebugInfoNoneId();

0 commit comments

Comments
 (0)