[LLVMbugs] [Bug 3372] New: .ll parser error when referencing '@0'
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Jan 22 07:02:50 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=3372
Summary: .ll parser error when referencing '@0'
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: LLVM assembly language parser
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicolas.geoffray at lip6.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2425)
--> (http://llvm.org/bugs/attachment.cgi?id=2425)
test case
There seems to be a bug in the .ll parser when referencing '@0'. The attached
test case sends an error when running with llvm-as:
test.ll:2:17: forward reference and definition of global have different types
However, if you change the '@0' reference to a '@1' reference (thus referencing
the next global variable) in the 'Try' variable, it works.
(And to make sure '@0' is the first unnamed global variable, changing '@0' to
'@2' returns an error: "use of undefined value '@2'")
--
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