Skip to content

unhelpful error message on missing terminator instruction #3385

@llvmbot

Description

@llvmbot
Bugzilla Link 3013
Resolution WONTFIX
Resolved on Nov 04, 2008 10:35
Version 2.3
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

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

foo:
add i32 1, 2
br label %5

bar:
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillatools:llvm-aswontfixIssue is real, but we can't or won't fix it. Not invalid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions