]> git.lizzy.rs Git - rust.git/commit
When a `nounwind` function has a personality routine, LLVM messes up .seh directives...
authorVadim Chugunov <vadimcn@gmail.com>
Sat, 1 Aug 2015 23:07:38 +0000 (16:07 -0700)
committerVadim Chugunov <vadimcn@gmail.com>
Sun, 2 Aug 2015 05:00:46 +0000 (22:00 -0700)
commite493027984b5961617c867a7003face00a057c92
treea8c9cda54b4311b0f74432aaab293a98afc6c428
parent6112b220782134c70516301f7dab2e05e3283f54
When a `nounwind` function has a personality routine, LLVM messes up .seh directives (happens to `rust_try` in optimized builds).  A workaround is to give `rust_try` the `uwtable` attribute.
Also, make sure that the dummy "load from null" instruction inserted by init_function() gets cleaned up.
src/librustc_trans/trans/intrinsic.rs