diff --git a/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp b/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp index 000d68d4a79ff..ec62a819b00ee 100644 --- a/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp +++ b/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp @@ -505,7 +505,6 @@ bool SPIRVEmitIntrinsics::runOnFunction(Function &Func) { if (!SI) continue; Type *ElTy = SI->getValueOperand()->getType(); - PointerType *PTy = cast(SI->getOperand(1)->getType()); if (ElTy->isAggregateType() || ElTy->isVectorTy()) AggrStores.insert(&I); }