Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIR printer asserts with empty inline asm string #32664

Closed
qcolombet opened this issue Jun 5, 2017 · 2 comments
Closed

MIR printer asserts with empty inline asm string #32664

qcolombet opened this issue Jun 5, 2017 · 2 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla tools:llc

Comments

@qcolombet
Copy link
Collaborator

Bugzilla Link 33317
Resolution FIXED
Resolved on Jun 06, 2017 12:01
Version trunk
OS All
CC @MatzeB

Extended Description

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

@qcolombet
Copy link
Collaborator Author

assigned to @MatzeB

@MatzeB
Copy link
Contributor

MatzeB commented Jun 6, 2017

Fixed by r304815

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla tools:llc
Projects
None yet
Development

No branches or pull requests

2 participants