Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions llpc/translator/lib/SPIRV/SPIRVToLLVMDbgTran.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,11 @@ DICompositeType *SPIRVToLLVMDbgTran::transTypeComposite(const SPIRVExtInst *Debu
switch (Ops[TagIdx]) {
case SPIRVDebug::Class:
CT = Builder.createClassType(ParentScope, Name, File, LineNo, Size, Align, 0, Flags, DerivedFrom,
DINodeArray() /*elements*/, nullptr /*VTableHolder*/, nullptr /*TemplateParams*/,
Identifier);
DINodeArray() /*elements*/,
#if !defined(LLVM_MAIN_REVISION) || LLVM_MAIN_REVISION >= 480873
0 /*RunTimeLang*/,
#endif
nullptr /*VTableHolder*/, nullptr /*TemplateParams*/, Identifier);
break;
case SPIRVDebug::Structure:
CT = Builder.createStructType(ParentScope, Name, File, LineNo, Size, Align, Flags, DerivedFrom,
Expand Down Expand Up @@ -415,6 +418,9 @@ DINode *SPIRVToLLVMDbgTran::transTypeEnum(const SPIRVExtInst *DebugInst) {
if (!isa<OpTypeVoid>(E))
UnderlyingType = transDebugInst<DIType>(static_cast<SPIRVExtInst *>(E));
return Builder.createEnumerationType(Scope, Name, File, LineNo, SizeInBits, AlignInBits, Enumerators, UnderlyingType,
#if !defined(LLVM_MAIN_REVISION) || LLVM_MAIN_REVISION >= 480873
0 /*RunTimeLang*/,
#endif
"", UnderlyingType);
}

Expand Down