Skip to content
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 Issue 19846 - zero size function parameter such as byte[0] causes… #11668

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

WalterBright
Copy link
Member

… code to not be executed

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Severity Description
19846 normal zero size function parameter such as byte[0] causes code to not be executed

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#11668"

assert(cgstate.stackclean == 0);
cgstate.stackclean = stackcleansave;
genstackclean(cdb,stackpush - stackpushsave,0);

freenode(e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the incorrect coverage warning see #11674.

@dlang-bot dlang-bot merged commit 5d73c08 into dlang:master Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants