Skip to content

Commit ea9e606

Browse files
bognerclingfei
authored andcommitted
[DirectX] Update DXILBitcodeWriter for llvm#162255 (llvm#162531)
Fix the build with the DirectX backend enabled by using `getUnversionedName()` to match the updates of other similar uses of `getSourceLanguage()`.
1 parent 863cf5a commit ea9e606

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)