Skip to content

Commit fe141c2

Browse files
authored
[DirectX] Update for API change in #139406 (#139470)
getAsmString returns StringRef now. Fixes build for the DirectX backend.
1 parent a438555 commit fe141c2

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
@@ -1974,7 +1974,7 @@ void DXILBitcodeWriter::writeConstants(unsigned FirstVal, unsigned LastVal,
19741974
unsigned(IA->getDialect() & 1) << 2);
19751975

19761976
// Add the asm string.
1977-
const std::string &AsmStr = IA->getAsmString();
1977+
StringRef AsmStr = IA->getAsmString();
19781978
Record.push_back(AsmStr.size());
19791979
Record.append(AsmStr.begin(), AsmStr.end());
19801980

0 commit comments

Comments
 (0)