Skip to content

Commit c45ad24

Browse files
authored
Fix build after LLVM InlineAsm changes (#3155)
Update after llvm commits 50e949f3cc47 ("[IR] Teach getAsmString to return StringRef (NFC) (#139406)", 2025-05-10) and 58014a506dd3 ("[IR] Teach getConstraintString to return StringRef (NFC) (#139401)", 2025-05-10).
1 parent c3b8056 commit c45ad24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SPIRV/SPIRVWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5550,7 +5550,7 @@ SPIRVValue *LLVMToSPIRVBase::transAsmINTEL(InlineAsm *IA) {
55505550
BM->getOrAddAsmTargetINTEL(TripleStr.str()));
55515551
auto *SIA = BM->addAsmINTEL(
55525552
static_cast<SPIRVTypeFunction *>(transType(IA->getFunctionType())),
5553-
AsmTarget, IA->getAsmString(), IA->getConstraintString());
5553+
AsmTarget, IA->getAsmString().str(), IA->getConstraintString().str());
55545554
if (IA->hasSideEffects())
55555555
SIA->addDecorate(DecorationSideEffectsINTEL);
55565556
return SIA;

0 commit comments

Comments
 (0)