Skip to content

Commit daba8b2

Browse files
authored
[NFC] Fix getSourceLanguage build after llvm commit 6cba572 (#3385)
getSourceLanguage API is changed to return DISourceLanguageName in llvm/llvm-project@6cba572d9efe
1 parent b12cb1c commit daba8b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)