[SPIRV][NFC] Remove unused variable

This removes an unused local variable that was causing a warning to be
emitted.
This commit is contained in:
Chris Bieneman 2022-04-26 09:58:16 -05:00
parent 9b38e2efa0
commit 69c66bb211
1 changed files with 0 additions and 1 deletions

View 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;