about summary refs log tree commit diff
path: root/src/test/compile-fail/no_send-struct.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-04-05 05:48:47 -0700
committerbors <bors@rust-lang.org>2016-04-05 05:48:47 -0700
commit953c3b5f502437398711ca442be0a10ad575b667 (patch)
tree7ed4845851b0fa61785546fc47b9e7a0c4ec7b07 /src/test/compile-fail/no_send-struct.rs
parent7ded11a58cf2f8037a511a8d340161c59fba9913 (diff)
parente17c48bb243163e22f4d5a3b42499c642ae41dec (diff)
downloadrust-953c3b5f502437398711ca442be0a10ad575b667.tar.gz
rust-953c3b5f502437398711ca442be0a10ad575b667.zip
Auto merge of #32742 - eddyb:cast-fns, r=dotdash
trans: don't declare symbols that were already imported.

Fixes #32740 by checking for a declaration before attempting a new one.
Before, `LLVMGetOrInsertFunction` was called for a existing import, but with a different type.
The returned value was a cast function pointer instead of a declaration, and we gave this
value to `llvm::SetFunctionCallConv` & friends , which triggered an LLVM assertion.
Diffstat (limited to 'src/test/compile-fail/no_send-struct.rs')
0 files changed, 0 insertions, 0 deletions