Skip to content

mark references to Freeze objects as read-only with TBAA metadata #11426

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

Closed
thestinger opened this issue Jan 9, 2014 · 2 comments
Closed

mark references to Freeze objects as read-only with TBAA metadata #11426

thestinger opened this issue Jan 9, 2014 · 2 comments
Labels
I-slow Issue: Problems and improvements with respect to performance of generated code.

Comments

@thestinger
Copy link
Contributor

A reference like &int should be marked as read-only in the LLVM IR.

@alexcrichton
Copy link
Member

Freeze was removed in #13076

@thestinger
Copy link
Contributor Author

I'll re-open this based on Unsafe after it gets fleshed out a bit.

flip1995 pushed a commit to flip1995/rust that referenced this issue Sep 25, 2023
fix ICE by `u64::try_from(<u128>)`

changelog: Fix the ICE in [`cast_possible_truncation`], when the `Shr` bits is larger than `u64::MAX`

fix rust-lang#11426
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-slow Issue: Problems and improvements with respect to performance of generated code.
Projects
None yet
Development

No branches or pull requests

2 participants