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

rustc_trans: do not treat byval as using up registers. #41378

Merged
merged 1 commit into from
Apr 20, 2017

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Apr 18, 2017

Perhaps not that well-documented, byval pointer arguments are not the same as pointer arguments used by pass-by-ref, but rather the pointer is only used by LLVM to pass the contents on the stack.

Fixes #41375.

@rust-highfive
Copy link
Collaborator

r? @arielb1

(rust_highfive has picked a reviewer for you, use r? to override)

@arielb1
Copy link
Contributor

arielb1 commented Apr 18, 2017

@bors r+

@bors
Copy link
Contributor

bors commented Apr 18, 2017

📌 Commit 0b35af9 has been approved by arielb1

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 18, 2017
…elb1

rustc_trans: do not treat byval as using up registers.

Perhaps not that well-documented, `byval` pointer arguments *are not* the same as pointer arguments used by pass-by-ref, but rather the pointer is only used by LLVM to pass the *contents* on the stack.

Fixes rust-lang#41375.
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 18, 2017
…elb1

rustc_trans: do not treat byval as using up registers.

Perhaps not that well-documented, `byval` pointer arguments *are not* the same as pointer arguments used by pass-by-ref, but rather the pointer is only used by LLVM to pass the *contents* on the stack.

Fixes rust-lang#41375.
@frewsxcv
Copy link
Member

There's a travis failure

@bors r-

@eddyb
Copy link
Member Author

eddyb commented Apr 18, 2017

@bors r=arielb1

@bors
Copy link
Contributor

bors commented Apr 18, 2017

📌 Commit cba0c6a has been approved by arielb1

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 18, 2017
…elb1

rustc_trans: do not treat byval as using up registers.

Perhaps not that well-documented, `byval` pointer arguments *are not* the same as pointer arguments used by pass-by-ref, but rather the pointer is only used by LLVM to pass the *contents* on the stack.

Fixes rust-lang#41375.
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 19, 2017
…elb1

rustc_trans: do not treat byval as using up registers.

Perhaps not that well-documented, `byval` pointer arguments *are not* the same as pointer arguments used by pass-by-ref, but rather the pointer is only used by LLVM to pass the *contents* on the stack.

Fixes rust-lang#41375.
@eddyb eddyb added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 19, 2017
@aidanhs aidanhs added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Apr 19, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 20, 2017
…elb1

rustc_trans: do not treat byval as using up registers.

Perhaps not that well-documented, `byval` pointer arguments *are not* the same as pointer arguments used by pass-by-ref, but rather the pointer is only used by LLVM to pass the *contents* on the stack.

Fixes rust-lang#41375.
bors added a commit that referenced this pull request Apr 20, 2017
Rollup of 5 pull requests

- Successful merges: #41214, #41369, #41377, #41378, #41390
- Failed merges:
@bors bors merged commit cba0c6a into rust-lang:master Apr 20, 2017
@eddyb eddyb deleted the byval-is-not-like-sret branch April 20, 2017 10:02
@eddyb eddyb added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Apr 20, 2017
@nikomatsakis nikomatsakis added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Apr 20, 2017
@nikomatsakis
Copy link
Contributor

Marking as beta-accepted. Small, blocks servo/firefox FFI.

cc @rust-lang/compiler

@alexcrichton alexcrichton removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 20, 2017
bors added a commit that referenced this pull request Apr 21, 2017
[beta] Final backports to beta

Backport of:

* #40863
* #41085
* #41354
* #41378
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-accepted Accepted for backporting to the compiler in the beta channel. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants