-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
Fix generation of invalid LLVM IR #4506
Conversation
Hi @ArthurPV, The changelog - fixed label was added to this pull request; all PRs with a changelog label need to have release notes included as part of the PR. If you haven't added release notes already, please do. Release notes are added by creating a uniquely named file in the The basic format of the release notes (using markdown) should be:
Thanks. |
Can you switch to using a runner test? https://github.com/ponylang/ponyc/tree/main/test/full-program-tests They don't have lots of gotchas about what is tested. |
Ideally both the examples from the issue would have runner tests. See the regression 623 tests for naming for having more than 1 test. And check out the main.pony for each for the standard sort of comment that should appear in the tests to indicate the original issue being addressed. |
Fix #4475
Before this change,
LLVM
reported an error during module verification when trying to compile the code referenced in issue #4475:This bug was caused by the failure to check for the presence of terminator instructions when generating
ret
instructions. So now, with this change, there's a check for the absence of a terminator instruction each time aret
instruction is generated.