[llvm] 69c66bb - [SPIRV][NFC] Remove unused variable

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 08:17:51 PDT 2022


Author: Chris Bieneman
Date: 2022-04-26T10:17:36-05:00
New Revision: 69c66bb211228d4969caa64fba462c321bc3438c

URL: https://github.com/llvm/llvm-project/commit/69c66bb211228d4969caa64fba462c321bc3438c
DIFF: https://github.com/llvm/llvm-project/commit/69c66bb211228d4969caa64fba462c321bc3438c.diff

LOG: [SPIRV][NFC] Remove unused variable

This removes an unused local variable that was causing a warning to be
emitted.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp b/llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
index 07633ce265a3d..f1d9386b731c8 100644
--- a/llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
@@ -311,7 +311,6 @@ SPIRVType *SPIRVGlobalRegistry::getSPIRVTypeForVReg(Register VReg) const {
 SPIRVType *SPIRVGlobalRegistry::getOrCreateSPIRVType(
     const Type *Type, MachineIRBuilder &MIRBuilder,
     SPIRV::AccessQualifier AccessQual, bool EmitIR) {
-  Register Reg;
   SPIRVType *SpirvType = createSPIRVType(Type, MIRBuilder, AccessQual, EmitIR);
   VRegToTypeMap[&MIRBuilder.getMF()][getSPIRVTypeID(SpirvType)] = SpirvType;
   SPIRVToLLVMType[SpirvType] = Type;


        


More information about the llvm-commits mailing list