diff options
author | Justin Bogner <mail@justinbogner.com> | 2023-12-07 17:13:54 -0800 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2023-12-07 17:15:14 -0800 |
commit | 2cd43e9d1733e7eb348d1730675379cad5262870 (patch) | |
tree | a23c1a5dc253790234a70a868333603aff57c751 | |
parent | 6d8b44a506787cd79d0cb82a05d296d6b49d057d (diff) | |
download | llvm-2cd43e9d1733e7eb348d1730675379cad5262870.zip llvm-2cd43e9d1733e7eb348d1730675379cad5262870.tar.gz llvm-2cd43e9d1733e7eb348d1730675379cad5262870.tar.bz2 |
[SPIR-V] Fix -Wunused-variable warning. NFC
-rw-r--r-- | llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp b/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp index 000d68d..ec62a81 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<PointerType>(SI->getOperand(1)->getType()); if (ElTy->isAggregateType() || ElTy->isVectorTy()) AggrStores.insert(&I); } |