Skip to content

Pre-llvm10 does not allow positional argument identifiers #116

@kquick

Description

@kquick

As seen in the test output from GaloisInc/llvm-pretty-bc-parser#233, llvm-pretty will ingest

...
define dso_local i32 @test1(i32) #0 {
...

but will then emit:

...
define default i32 @test1(i32 %0) {
...

where the latter causes a failure when passed to llvm-as version 9:

llvm-as: disasm-test/tests/callbr.pre-llvm10.ll:4:31: error: expected ')' at end of argument list

and it highlights the %0 of the argument list. Prior to llvm-10, it appears that positional argument identifiers are not allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions