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

Return error for integer type with bitwidth larger than 16777215 #1541

wants to merge 2 commits into from


None yet
2 participants
Copy link

kristate commented Sep 17, 2018

LLVM only supports integer types up to (1<<24)-1 bits.
This patch guards against attempting to utilize integer types with bitwidth larger than (1<<24)-1 bits.

ref: #1530

Copy link

andrewrk left a comment

squash commits please

@andrewrk andrewrk added this to the 0.4.0 milestone Sep 21, 2018

@kristate kristate force-pushed the kristate:integer-upperbound-ref1530 branch from dcafade to 0394bbb Oct 10, 2018

kristate added some commits Sep 16, 2018

test/compile_errors.zig: test to assert that only integers of bitwidt…
…hs from ZigLLVM_MIN_BITS to ZigLLVM_MAX_BITS are supported;

@kristate kristate force-pushed the kristate:integer-upperbound-ref1530 branch from 0394bbb to be51902 Oct 10, 2018

@andrewrk andrewrk closed this in 63f636e Nov 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.