If you try to output MIR for an IR with empty inline asm string, the MIR printing pass is going to assert with: Assertion failed: (!Name.empty() && "Cannot get empty name!"), function printLLVMNameWithoutPrefix, file lib/IR/AsmWriter.cpp, line 362. E.g., define void @toto() { call void asm sideeffect "", "~{lr}"() nounwind ret void } Fails. define void @toto() { call void asm sideeffect "# DUMMY", "~{lr}"() nounwind ret void } Works
Fixed by r304815