]> git.lizzy.rs Git - rust.git/commit
auto merge of #14191 : luqmana/rust/eu, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 14 May 2014 12:56:18 +0000 (05:56 -0700)
committerbors <bors@rust-lang.org>
Wed, 14 May 2014 12:56:18 +0000 (05:56 -0700)
commitd78718ad6317b21c58cfd6723501a9487378b0c7
treebde3b5679847ae70d39e6f02df5525a271533700
parentd9906813c8102c9c9e6ff2316a96e7a0e3f70af9
parent589f4472992ff5e78087a990da58662a15d86fed
auto merge of #14191 : luqmana/rust/eu, r=alexcrichton

We were correctly determining the attributes needed for the parameters for extern fns, but when that extern fn was from another crate we never bothered to pass that information along to LLVM. (i.e never called `foreign::add_argument_attributes`).

I've just changed both local and non-local (crate) extern fn's to be dealt with together (through `foreign::register_foreign_item_fn`) so we don't run into something like again.

Fixes #14177.