[llvm] 2cd43e9 - [SPIR-V] Fix -Wunused-variable warning. NFC

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 17:15:23 PST 2023


Author: Justin Bogner
Date: 2023-12-07T17:15:14-08:00
New Revision: 2cd43e9d1733e7eb348d1730675379cad5262870

URL: https://github.com/llvm/llvm-project/commit/2cd43e9d1733e7eb348d1730675379cad5262870
DIFF: https://github.com/llvm/llvm-project/commit/2cd43e9d1733e7eb348d1730675379cad5262870.diff

LOG: [SPIR-V] Fix -Wunused-variable warning. NFC

Added: 
    

Modified: 
    llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp

Removed: 
    


################################################################################
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<PointerType>(SI->getOperand(1)->getType());
     if (ElTy->isAggregateType() || ElTy->isVectorTy())
       AggrStores.insert(&I);
   }


        


More information about the llvm-commits mailing list