Skip to content

Commit ead1d41

Browse files
authored
Update SPIRVModuleAnalysis.cpp
1 parent 4128996 commit ead1d41

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,9 +1747,6 @@ void addInstrRequirements(const MachineInstr &MI,
17471747
false);
17481748
SPIRVGlobalRegistry *GR = ST.getSPIRVGlobalRegistry();
17491749
SPIRV::AddressingModel::AddressingModel AddrModel = MAI.Addr;
1750-
unsigned PointerSize = ST.getPointerSize();
1751-
AddrModel = PointerSize == 32 ? SPIRV::AddressingModel::Physical32
1752-
: SPIRV::AddressingModel::Physical64;
17531750
SPIRVType *TyDef = GR->getSPIRVTypeForVReg(MI.getOperand(1).getReg());
17541751
if (MI.getOpcode() == SPIRV::OpConvertHandleToImageINTEL &&
17551752
TyDef->getOpcode() != SPIRV::OpTypeImage) {

0 commit comments

Comments
 (0)