about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-10-01 09:14:53 +0000
committerbors <bors@rust-lang.org>2017-10-01 09:14:53 +0000
commit0defa208dcb5a0f3c1ca5bc4df7acf52759ece44 (patch)
treea5e7afb6aa8722ffde1533ae1c0ddc288a19e446 /src/rustllvm/RustWrapper.cpp
parent1c09315f6d7559aaaa23baa92f753ce6f86dff65 (diff)
parenta4e83731e9aa0cd1a412b090626ace6aa54250bb (diff)
downloadrust-0defa208dcb5a0f3c1ca5bc4df7acf52759ece44.tar.gz
rust-0defa208dcb5a0f3c1ca5bc4df7acf52759ece44.zip
Auto merge of #44906 - dkl:main-signature, r=nagisa
Fix native main() signature on 64bit

Hello,

in LLVM-IR produced by rustc on x86_64-linux-gnu, the native main() function had incorrect types for the function result and argc parameter: i64, while it should be i32 (really c_int). See also #20064, #29633.

So I've attempted a fix here. I tested it by checking the LLVM IR produced with --target x86_64-unknown-linux-gnu and i686-unknown-linux-gnu. Also I tried running the tests (`./x.py test`), however I'm getting two failures with and without the patch, which I'm guessing is unrelated.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions