-
Notifications
You must be signed in to change notification settings - Fork 46
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 irregular switch labels so ordering is consecutive #183
Comments
If this is implemented, it should be a toggle. The ordering of switch cases will change codegen, the "correct" ordering is going by what's in the body of the switch and then outputting which cases reach that part of the body. |
This issue isn't about reordering switch cases (that would be very dangerous indeed, and we haven't found a compiler for which we need to do that), but rather about the indexing of |
Originally posted by @simonlindholm in #180 (comment)
Also fix the issue where one switch may have index
0
(and therefore no comment) even if other switches are detected later.The text was updated successfully, but these errors were encountered: