-
Notifications
You must be signed in to change notification settings - Fork 951
Compiling ANTLR with tinygo returning Function return type does not match operand type of return inst! #1887
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
Comments
That certainly looks like a bug in TinyGo. Can you share a small code sample that reproduces this problem? |
I created a repo with the minimum code to reproduce the issue, you can find it in here: https://github.com/jjeb/ql. I did some digging and it seems like something on ANTLR does not compile on tinyGo, I am still not sure what is it. Thank in advance. |
Thank you! Now I can reproduce the issue. |
Here is a fix: #1898 |
Hello @jjeb can you please check to see if this fix works for you. Thanks. |
Hello @deadprogram / @aykevl It does compiles but it does not work, I am getting and error in web console, when I tried to execute it:
I updated the repo-example so there is a consistent way to reproduce the issue and you can see the error. The tinygo version after build from the branch with the fix is:
Thank you |
Hello, I met the same problem. Thank you |
This fix is very similar to tinygo-org#1768, but now for the return type. It fixes the issue in tinygo-org#1887. Like tinygo-org#1768, I'm not sure how to test this as it is very specific to certain renames that LLVM does and that don't seem very reproducable.
I think the request was fulfilled in the new release, so closing. Please reopen if needed. Thanks! |
This fix is very similar to tinygo-org#1768, but now for the return type. It fixes the issue in tinygo-org#1887. Like tinygo-org#1768, I'm not sure how to test this as it is very specific to certain renames that LLVM does and that don't seem very reproducable.
Hi, I am trying to compile ANTLR4 using tinyGo, I am fully aware that there is some challenges so I am not really looking for a solution but to understand a little bit more about the error so I can try to figure it out:
The text was updated successfully, but these errors were encountered: