Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-llvm10 does not allow positional argument identifiers #116

Open
kquick opened this issue Jul 10, 2023 · 0 comments
Open

Pre-llvm10 does not allow positional argument identifiers #116

kquick opened this issue Jul 10, 2023 · 0 comments

Comments

@kquick
Copy link
Member

kquick commented Jul 10, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant