aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Bieneman <chris.bieneman@me.com>2022-04-26 09:58:16 -0500
committerChris Bieneman <chris.bieneman@me.com>2022-04-26 10:17:36 -0500
commit69c66bb211228d4969caa64fba462c321bc3438c (patch)
tree1eea5471d72f6034f12132002ef4c9175180d904
parent9b38e2efa0f0c819ec696d13731ac1ce08f81930 (diff)
downloadllvm-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.cpp1
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;