diff options
| author | Chris Bieneman <chris.bieneman@me.com> | 2022-04-26 09:58:16 -0500 |
|---|---|---|
| committer | Chris Bieneman <chris.bieneman@me.com> | 2022-04-26 10:17:36 -0500 |
| commit | 69c66bb211228d4969caa64fba462c321bc3438c (patch) | |
| tree | 1eea5471d72f6034f12132002ef4c9175180d904 | |
| parent | 9b38e2efa0f0c819ec696d13731ac1ce08f81930 (diff) | |
| download | llvm-69c66bb211228d4969caa64fba462c321bc3438c.zip llvm-69c66bb211228d4969caa64fba462c321bc3438c.tar.gz llvm-69c66bb211228d4969caa64fba462c321bc3438c.tar.bz2 | |
[SPIRV][NFC] Remove unused variable
This removes an unused local variable that was causing a warning to be
emitted.
| -rw-r--r-- | llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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; |
