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

creating an empty slice causes an assertion #660

Closed
cenomla opened this issue Dec 18, 2017 · 2 comments
Closed

creating an empty slice causes an assertion #660

cenomla opened this issue Dec 18, 2017 · 2 comments
Labels
Milestone

Comments

@cenomla
Copy link

@cenomla cenomla commented Dec 18, 2017

zig: /home/cenomla/Workspace/zig/zig/src/codegen.cpp:4306: LLVMOpaqueValue* build_alloca(CodeGen*, TypeTableEntry*, const char*, uint32_t): Assertion 'alignment > 0' failed.

@andrewrk
Copy link
Member

@andrewrk andrewrk commented Dec 18, 2017

what was the source code to trigger this one?

Loading

@andrewrk andrewrk added the bug label Dec 18, 2017
@andrewrk andrewrk added this to the 0.2.0 milestone Dec 18, 2017
@cenomla
Copy link
Author

@cenomla cenomla commented Dec 18, 2017

var msg = []u8 {};
_ = stdout.write(msg);

Loading

@andrewrk andrewrk closed this in d686113 Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants