diff options
| author | varkor <github@varkor.com> | 2018-02-25 23:05:06 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-02-25 23:05:06 +0000 |
| commit | 24666443898c142944b4156c22d04130b9db645b (patch) | |
| tree | 090263145bac47a56886a6b34dfd46250809e816 /src/rustllvm/RustWrapper.cpp | |
| parent | 026339e42ba11a559767029d933d1197aefb877a (diff) | |
| download | rust-24666443898c142944b4156c22d04130b9db645b.tar.gz rust-24666443898c142944b4156c22d04130b9db645b.zip | |
Ensure main() always has external linkage
This ensures that the entry function is never elided due to inlining, even with `inline(always)`. Fixes #47783. There were a couple of possible ways of addressing this issue; I simply picked the one that seemed most direct. A warning could be appropriate, but considering using inlining hints in other places it doesn't apply also throws no warnings, and it seems like an edge case anyway, I haven't added one for now.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
