================
@@ -370,7 +383,8 @@ static SPIRVTypeInst propagateSPIRVType(MachineInstr *MI,
if (SpvType) {
// check if the address space needs correction
LLT RegType = MRI.getType(Reg);
- if (SpvType->getOpcode() == SPIRV::OpTypePointer &&
+ if ((SpvType->getOpcode() == SPIRV::OpTypePointer ||
+ SpvType->getOpcode() == SPIRV::OpTypeUntypedPointerKHR) &&
----------------
aobolensk wrote:
```suggestion
if (SpvType.isPointer() &&
```
https://github.com/llvm/llvm-project/pull/201233
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits