[llvm-bugs] [Bug 33317] New: MIR printer asserts with empty inline asm string

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 5 16:17:15 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33317

            Bug ID: 33317
           Summary: MIR printer asserts with empty inline asm string
           Product: tools
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llc
          Assignee: unassignedbugs at nondot.org
          Reporter: qcolombet at apple.com
                CC: llvm-bugs at lists.llvm.org

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170605/b693e74c/attachment.html>


More information about the llvm-bugs mailing list