[LLVMbugs] [Bug 3013] New: unhelpful error message on missing terminator instruction

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Nov 4 08:16:58 PST 2008


           Summary: unhelpful error message on missing terminator
           Product: tools
           Version: 2.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-as
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: dwashington at gmx.net
                CC: llvmbugs at cs.uiuc.edu

If I try to assemble an LLVM IR file with a block missing a terminator
instruction, like the following example:

define i32 @main() {
    br i1 true, label %foo, label %bar

    add i32 1, 2
    br label %5

    ret i32 0

i get an error message like the following:

 llvm-as: no-terminator.ll:11,0: Undefined reference to label

This does not in any way point me to the missing terminator instruction for the
"foo" block, although this is the actual cause of the error. llvm-as should
ideally detect the missing terminator and report that instead, or at least in
addition, to the above message.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list