Skip to content

Commit 2cd43e9

Browse files
committed
[SPIR-V] Fix -Wunused-variable warning. NFC
1 parent 6d8b44a commit 2cd43e9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,6 @@ bool SPIRVEmitIntrinsics::runOnFunction(Function &Func) {
505505
if (!SI)
506506
continue;
507507
Type *ElTy = SI->getValueOperand()->getType();
508-
PointerType *PTy = cast<PointerType>(SI->getOperand(1)->getType());
509508
if (ElTy->isAggregateType() || ElTy->isVectorTy())
510509
AggrStores.insert(&I);
511510
}

0 commit comments

Comments
 (0)