Skip to content

Assembler doesn't catch bad casts. #1489

@llvmbot

Description

@llvmbot
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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions