From 69c66bb211228d4969caa64fba462c321bc3438c Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Tue, 26 Apr 2022 09:58:16 -0500 Subject: [PATCH] [SPIRV][NFC] Remove unused variable This removes an unused local variable that was causing a warning to be emitted. --- llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp b/llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp index 07633ce..f1d9386 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; -- 2.7.4