Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix passing self by value for types passed by value
For types that are passed by value, we can't just cast the value to a pointer, but have to use an alloca and copy the value there. This handling is already present for all other arguments, but was missing for "self". Fixes rust-lang#6682, rust-lang#4850 and rust-lang#4878
- Loading branch information
b51f44e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+