Skip to content

.ll parser error when referencing '@0' #3744

@llvmbot

Description

@llvmbot
Bugzilla Link 3372
Resolution FIXED
Resolved on Feb 02, 2009 02:49
Version trunk
OS All
Attachments test case
Reporter LLVM Bugzilla Contributor

Extended Description

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'")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions