Skip to content

Commit 5e653f9

Browse files
committed
Revert "[NFC] Fix getSourceLanguage build after llvm commit 6cba572 (KhronosGroup#3385)"
This reverts commit daba8b2.
1 parent d7a4715 commit 5e653f9

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

0 commit comments

Comments
 (0)