-
Notifications
You must be signed in to change notification settings - Fork 951
LLVM ERROR: Cannot select: intrinsic %llvm.coro.size #1653
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
Is that actually valid Go code?
|
It is valid in the sense that it is well defined: a program like this is defined to exit with a panic. This is certainly a compiler bug, either in TinyGo or in LLVM. |
@deadprogram Yes, it's valid, in the sense that it conforms to the Go Specification. As @aykevl pointed out, in general a compiler shouldn't crash when compiling valid -or invalid- Go code. Valid code should generate a binary, which then may or may not panic at runtime, like mine does; invalid Go code should print a compilation error. In this case LLVM is crashing while processing a valid Go program, so this can be classified as a compiler bug. |
This should be addressed now that coroutines are no longer used (and will be removed by #2174 ) |
Confirmed fixed on 0.25 |
The text was updated successfully, but these errors were encountered: