Skip to content

Commit

Permalink
Adapt to change introduced by #122928 in upstream
Browse files Browse the repository at this point in the history
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 KhronosGroup/SPIRV-LLVM-Translator#2965
  • Loading branch information
searlmc1 committed Jan 18, 2025
1 parent 4e8a01b commit cedadf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SPIRV/SPIRVToLLVMDbgTran.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit cedadf1

Please sign in to comment.