Skip to content

Conversation

@Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Jul 25, 2014

This add the LLVM noalias attribute to parameters of a
shared reference type (&) which have a safe interior.

This add the LLVM noalias attribute to parameters of a
shared reference type (&) which have a safe interior.
@emberian
Copy link
Contributor

(The reason being that &T where T doesn't contain Unsafe<T> points to memory that is, for the lifetime of the function call, immutable, and cannot impose a memory dependency on any other arguments of the function)

bors added a commit that referenced this pull request Jul 25, 2014
This add the LLVM noalias attribute to parameters of a
shared reference type (&) which have a safe interior.
@bors bors closed this Jul 25, 2014
@bors bors merged commit 4c2d4cd into rust-lang:master Jul 25, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 4, 2023
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.

3 participants