[SPIRV][NFC] Remove unused variable
authorChris Bieneman <chris.bieneman@me.com>
Tue, 26 Apr 2022 14:58:16 +0000 (09:58 -0500)
committerChris Bieneman <chris.bieneman@me.com>
Tue, 26 Apr 2022 15:17:36 +0000 (10:17 -0500)
This removes an unused local variable that was causing a warning to be
emitted.

llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp

index 07633ce..f1d9386 100644 (file)
@@ -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;