[llvm] 40fbe32 - [DirectX] Update DXILBitcodeWriter for #162255 (#162531)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 8 11:48:30 PDT 2025
Author: Justin Bogner
Date: 2025-10-08T11:48:27-07:00
New Revision: 40fbe32cbad1cec303345cb7908d35ea93d88ef2
URL: https://github.com/llvm/llvm-project/commit/40fbe32cbad1cec303345cb7908d35ea93d88ef2
DIFF: https://github.com/llvm/llvm-project/commit/40fbe32cbad1cec303345cb7908d35ea93d88ef2.diff
LOG: [DirectX] Update DXILBitcodeWriter for #162255 (#162531)
Fix the build with the DirectX backend enabled by using `getUnversionedName()`
to match the updates of other similar uses of `getSourceLanguage()`.
Added:
Modified:
llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
index bc1a3a7995bda..82c43ff8dc352 100644
--- a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
+++ b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
@@ -1507,7 +1507,7 @@ void DXILBitcodeWriter::writeDICompileUnit(const DICompileUnit *N,
SmallVectorImpl<uint64_t> &Record,
unsigned Abbrev) {
Record.push_back(N->isDistinct());
- Record.push_back(N->getSourceLanguage());
+ Record.push_back(N->getSourceLanguage().getUnversionedName());
Record.push_back(VE.getMetadataOrNullID(N->getFile()));
Record.push_back(VE.getMetadataOrNullID(N->getRawProducer()));
Record.push_back(N->isOptimized());
More information about the llvm-commits
mailing list