Skip to content

asmparser doesn't report errors it finds #1258

@lattner

Description

@lattner
Bugzilla Link 886
Resolution FIXED
Resolved on Feb 22, 2010 12:54
Version trunk
OS All
Blocks llvm/llvm-bugzilla-archive#895

Extended Description

This .ll file is buggy (%X isn't defined):

ulong %foo(ulong %x) { 
         %tmp.1 = load long* %X          ; [#uses=1]
        %tmp.3 = cast long %tmp.1 to ubyte              ; [#uses=1]
        %tmp.4 = shl ulong %x, ubyte %tmp.3             ; [#uses=1]
        ret ulong %tmp.4
}

When parsing it, I don't get a good error from the asmparser, I get assertion failures.

I could have sworn this used to be caught.

-Chris

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