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

Assembler doesn't catch bad casts. #1489

Closed
llvmbot opened this issue Jan 16, 2007 · 2 comments
Closed

Assembler doesn't catch bad casts. #1489

llvmbot opened this issue Jan 16, 2007 · 2 comments

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Jan 16, 2007

Bugzilla Link 1117
Resolution FIXED
Resolved on Feb 22, 2010 12:45
Version trunk
OS All
Reporter LLVM Bugzilla Contributor

Extended Description

The AsmParser isn't catching illegal casts and reporting them as errors. This
causes llvm-as to fail with an assertion when the attempt is made to instantiate
the illegal cast instruction. For example:

%X = trunc i32 %Y to i8*

The instruction needed here is inttoptr, not trunc. This causes an assertion
instead of a nice error message.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Jan 17, 2007

Mine.

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

No branches or pull requests

1 participant