File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
- // compile-flags: -Z panic-in-drop=abort -O
1
+ // compile-flags: -Z panic-in-drop=abort -O -Z new-llvm-pass-manager=no
2
2
3
3
// Ensure that unwinding code paths are eliminated from the output after
4
4
// optimization.
5
5
6
+ // This test uses -Z new-llvm-pass-manager=no, because the expected optimization does not happen
7
+ // on targets using SEH exceptions (i.e. MSVC) anymore. The core issue is that Rust promises that
8
+ // the drop_in_place() function can't unwind, but implements it in a way that *can*, because we
9
+ // currently go out of our way to allow longjmps, which also use the unwinding mechanism on MSVC
10
+ // targets. We should either forbid longjmps, or not assume nounwind, making this optimization
11
+ // incompatible with the current behavior of running cleanuppads on longjmp unwinding.
12
+
6
13
// CHECK-NOT: {{(call|invoke).*}}should_not_appear_in_output
7
14
8
15
#![ crate_type = "lib" ]
You can’t perform that action at this time.
0 commit comments