Skip to content

Commit 314f988

Browse files
wenju-hesys-ce-bb
authored andcommitted
Fix getSourceLanguage build after llvm commit 6cba572 (#3385)
getSourceLanguage API is changed to return DISourceLanguageName in llvm/llvm-project@6cba572d9efe Original commit: KhronosGroup/SPIRV-LLVM-Translator@daba8b217bc2668
1 parent 43fb2df commit 314f988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm-spirv/lib/SPIRV/LLVMToSPIRVDbgTran.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,8 @@ SPIRVEntry *LLVMToSPIRVDbgTran::transDbgCompileUnit(const DICompileUnit *CU) {
587587
if (isNonSemanticDebugInfo())
588588
generateBuildIdentifierAndStoragePath(CU);
589589

590-
auto DwarfLang =
591-
static_cast<llvm::dwarf::SourceLanguage>(CU->getSourceLanguage());
590+
auto DwarfLang = static_cast<llvm::dwarf::SourceLanguage>(
591+
CU->getSourceLanguage().getUnversionedName());
592592
Ops[LanguageIdx] =
593593
BM->getDebugInfoEIS() == SPIRVEIS_NonSemantic_Shader_DebugInfo_200
594594
? convertDWARFSourceLangToSPIRVNonSemanticDbgInfo(DwarfLang)

0 commit comments

Comments
 (0)