From e2b5d99cb70f9335c3ed8bdd7e28d5beed9a27e6 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Sun, 17 Nov 2024 13:43:50 +0000 Subject: [PATCH] Fix merge. --- lib/SPIRV/SPIRVWriter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/SPIRV/SPIRVWriter.cpp b/lib/SPIRV/SPIRVWriter.cpp index 0b0e298f..7a64c691 100644 --- a/lib/SPIRV/SPIRVWriter.cpp +++ b/lib/SPIRV/SPIRVWriter.cpp @@ -756,8 +756,7 @@ SPIRVType *LLVMToSPIRVBase::transPointerType(SPIRVType *ET, unsigned AddrSpc) { !BM->shouldEmitFunctionPtrAddrSpace()) return transPointerType(ET, SPIRAS_Private); if (BM->isAllowedToUseExtension(ExtensionID::SPV_KHR_untyped_pointers) && - !(ET->isTypeArray() || ET->isTypeVector() || ET->isTypeStruct() || - ET->isSPIRVOpaqueType() || + !(ET->isTypeArray() || ET->isTypeVector() || ET->isSPIRVOpaqueType() || (M->getTargetTriple() == "spirv64-amd-amdhsa" && ET->getOpCode() == OpTypeFunction))) { TranslatedTy = BM->addUntypedPointerKHRType(