[LLVMbugs] [Bug 1117] NEW: Assembler doesn't catch bad casts.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 16 09:52:54 PST 2007


http://llvm.org/bugs/show_bug.cgi?id=1117

           Summary: Assembler doesn't catch bad casts.
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM assembly language parser
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rspencer at x10sys.com


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.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list