diff options
| author | bors <bors@rust-lang.org> | 2017-10-01 09:14:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-10-01 09:14:53 +0000 |
| commit | 0defa208dcb5a0f3c1ca5bc4df7acf52759ece44 (patch) | |
| tree | a5e7afb6aa8722ffde1533ae1c0ddc288a19e446 /src/rustllvm/PassWrapper.cpp | |
| parent | 1c09315f6d7559aaaa23baa92f753ce6f86dff65 (diff) | |
| parent | a4e83731e9aa0cd1a412b090626ace6aa54250bb (diff) | |
| download | rust-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/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
