http://llvm.org/bugs/show_bug.cgi?id=3013
Summary: unhelpful error message on missing terminator
instruction
Product: tools
Version: 2.3
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llvm-as
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
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.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs