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

Do not assume anything about the top bits in llvm intrinsics receiving i8/i16 values #4865

Merged
merged 1 commit into from
Jan 19, 2017

Conversation

kripken
Copy link
Member

@kripken kripken commented Jan 17, 2017

See rust-lang/rust#39119, turns out rust emits different constants than clang, and we just handled the clang way (which in this case was i8 255 vs i8 -1).

…g i8/i16 values - while normally we can assume that the top bits are clear due to how LLVM creates the call, if the call is an ffi or constructed in a non-clang way (see rust-lang/rust#39119 - rust emits a negative constant i8 -1 instead of clang's i8 255) then we must be careful
@kripken
Copy link
Member Author

kripken commented Jan 19, 2017

Looks like no concerns, merging.

@kripken kripken merged commit 6c9a2f2 into incoming Jan 19, 2017
@kripken kripken deleted the small_intrinsics branch January 19, 2017 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant