We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1bc5e5 commit 079abd0Copy full SHA for 079abd0
src/librustc_trans/cleanup.rs
@@ -59,11 +59,11 @@ impl<'tcx> DropValue<'tcx> {
59
bcx.set_personality_fn(llpersonality);
60
61
if base::wants_msvc_seh(fcx.ccx.sess()) {
62
- // Insert cleanup instructions into the cleanup block
63
- let funclet = Some(Funclet::new(bcx.cleanup_pad(None, &[])));
+ let pad = bcx.cleanup_pad(None, &[]);
+ let funclet = Some(Funclet::new(pad));
64
self.trans(funclet.as_ref(), &bcx);
65
66
- bcx.cleanup_ret(bcx.cleanup_pad(None, &[]), None);
+ bcx.cleanup_ret(pad, None);
67
} else {
68
// The landing pad return type (the type being propagated). Not sure
69
// what this represents but it's determined by the personality
0 commit comments