Skip to content

Commit 40fbe32

Browse files
authored
[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()`.
1 parent 81c6f53 commit 40fbe32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ void DXILBitcodeWriter::writeDICompileUnit(const DICompileUnit *N,
15071507
SmallVectorImpl<uint64_t> &Record,
15081508
unsigned Abbrev) {
15091509
Record.push_back(N->isDistinct());
1510-
Record.push_back(N->getSourceLanguage());
1510+
Record.push_back(N->getSourceLanguage().getUnversionedName());
15111511
Record.push_back(VE.getMetadataOrNullID(N->getFile()));
15121512
Record.push_back(VE.getMetadataOrNullID(N->getRawProducer()));
15131513
Record.push_back(N->isOptimized());

0 commit comments

Comments
 (0)