forked from OSchip/llvm-project
[SPIRV][NFC] Remove unused variable
This removes an unused local variable that was causing a warning to be emitted.
This commit is contained in:
parent
9b38e2efa0
commit
69c66bb211
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue