-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
move assert() code past end of function #7386
Conversation
|
Thanks for your pull request, @WalterBright! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
|
For code: the following is now generated: |
04e8fea
to
35e52b6
Compare
|
I can't comment on the code, but I will note that this doesn't apply only to asserts, but to all slow path noreturn branches e.g. conditional branches that terminate in a |
|
I know, but one thing at a time! |
|
Fair enough. |
fec67ad
to
06dd7f5
Compare
06dd7f5
to
50aec4f
Compare
|
This caused a regression: https://issues.dlang.org/show_bug.cgi?id=19550 |
|
I haven't done much much complexity analysis, but that looks |
Per Nicholas Wilson's suggestion:
http://www.digitalmars.com/d/archives/digitalmars/D/Thoughts_about_D_308441.html#N308716