Skip to content

Commit ab8cc8b

Browse files
svenvhjsji
authored andcommitted
Fix build after LLVM InlineAsm changes (#3155)
Update after llvm commits 50e949f ("[IR] Teach getAsmString to return StringRef (NFC) (#139406)", 2025-05-10) and 58014a5 ("[IR] Teach getConstraintString to return StringRef (NFC) (#139401)", 2025-05-10). Original commit: KhronosGroup/SPIRV-LLVM-Translator@c45ad2498b1eef8
1 parent 6ebc051 commit ab8cc8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm-spirv/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().data(), IA->getConstraintString().str());
5553+
AsmTarget, IA->getAsmString().str(), IA->getConstraintString().str());
55545554
if (IA->hasSideEffects())
55555555
SIA->addDecorate(DecorationSideEffectsINTEL);
55565556
return SIA;

0 commit comments

Comments
 (0)