From cedadf10757fc2c51b0d13c23a5fe36bb0e5a725 Mon Sep 17 00:00:00 2001 From: Mark Searles Date: Fri, 17 Jan 2025 16:52:04 -0800 Subject: [PATCH] Adapt to change introduced by #122928 in upstream Change #122928 in LLVM modifies the signature of createObjectPointerType in a backwards incompatible fashion; this adapts the translator's single use of that interface to match the new signature, whilst retaining existing behaviour. C-p'ed from https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/2965 --- lib/SPIRV/SPIRVToLLVMDbgTran.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SPIRV/SPIRVToLLVMDbgTran.cpp b/lib/SPIRV/SPIRVToLLVMDbgTran.cpp index d6a847b8..5392cc4d 100644 --- a/lib/SPIRV/SPIRVToLLVMDbgTran.cpp +++ b/lib/SPIRV/SPIRVToLLVMDbgTran.cpp @@ -330,7 +330,7 @@ DIType *SPIRVToLLVMDbgTran::transTypePointer(const SPIRVExtInst *DebugInst) { PointeeTy, BM->getAddressingModel() * 32, 0, AS); if (Flags & SPIRVDebug::FlagIsObjectPointer) - Ty = getDIBuilder(DebugInst).createObjectPointerType(Ty); + Ty = getDIBuilder(DebugInst).createObjectPointerType(Ty, /*Implicit=*/true); else if (Flags & SPIRVDebug::FlagIsArtificial) Ty = getDIBuilder(DebugInst).createArtificialType(Ty);