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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@andrewrk

andrewrk Dec 18, 2017

Member

what was the source code to trigger this one?

Member

andrewrk commented Dec 18, 2017

what was the source code to trigger this one?

@andrewrk andrewrk added the bug label Dec 18, 2017

@andrewrk andrewrk added this to the 0.2.0 milestone Dec 18, 2017

@cenomla

This comment has been minimized.

Show comment
Hide comment
@cenomla

cenomla Dec 18, 2017

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

cenomla commented Dec 18, 2017

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

@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