[llvm-bugs] [Bug 40113] New: Error parsing LLVM function without entry label
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Dec 20 04:59:27 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=40113
Bug ID: 40113
Summary: Error parsing LLVM function without entry label
Product: new-bugs
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: contact at yannic-bonenberger.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
Created attachment 21256
--> https://bugs.llvm.org/attachment.cgi?id=21256&action=edit
C source
Steps to reproduce:
- Download good.ll (Generated by `clang -S -emit-llvm good.c` and then
manually reduced to a smaller example).
- Run `lli good.ll` and see that there are no errors.
- Download bad.ll which removed the entry-label from function @x.
- Run `lli bad.ll`
What is the expected output:
good.ll and bad.ll should behave exactly the same.
I'm not sure whether good.ll or bad.ll produces the wrong output.
If it's good.ll, then it is a bug in clang's code generation.
Otherwise, it's a bug in the IR parser.
What happens instead:
`lli good.ll` shows no errors, `lli bad.ll` shows the following error:
lli: bad.ll:5:3: error: instruction expected to be numbered '%1'
%0 = load i32, i32* %a.addr
^
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181220/4d0301c9/attachment-0001.html>
More information about the llvm-bugs
mailing list