@@ -3739,11 +3739,11 @@ fn invoke_(bcx: @block_ctxt, llfn: ValueRef,
3739
3739
3740
3740
fn get_landing_pad ( bcx : @block_ctxt ) -> BasicBlockRef {
3741
3741
let scope_bcx = find_scope_cx ( bcx) ;
3742
- if scope_bcx. cleanups_dirty {
3742
+ if scope_bcx. need_new_lpad {
3743
3743
let unwind_bcx = new_sub_block_ctxt ( bcx, "unwind" ) ;
3744
3744
let lpadbb = trans_landing_pad ( unwind_bcx) ;
3745
3745
scope_bcx. lpad = some ( lpadbb) ;
3746
- scope_bcx. cleanups_dirty = false ;
3746
+ scope_bcx. need_new_lpad = false ;
3747
3747
}
3748
3748
assert option:: is_some ( scope_bcx. lpad ) ;
3749
3749
ret option:: get ( scope_bcx. lpad ) ;
@@ -4533,7 +4533,7 @@ fn new_block_ctxt(cx: @fn_ctxt, parent: block_parent, kind: block_kind,
4533
4533
parent : parent,
4534
4534
kind : kind,
4535
4535
mutable cleanups : [ ] ,
4536
- mutable cleanups_dirty : true ,
4536
+ mutable need_new_lpad : true ,
4537
4537
mutable lpad: option:: none,
4538
4538
sp : cx. sp ,
4539
4539
fcx : cx} ;
@@ -4569,7 +4569,7 @@ fn new_raw_block_ctxt(fcx: @fn_ctxt, llbb: BasicBlockRef) -> @block_ctxt {
4569
4569
parent : parent_none,
4570
4570
kind : NON_SCOPE_BLOCK ,
4571
4571
mutable cleanups : [ ] ,
4572
- mutable cleanups_dirty : true ,
4572
+ mutable need_new_lpad : true ,
4573
4573
mutable lpad: option:: none,
4574
4574
sp : fcx. sp ,
4575
4575
fcx : fcx} ;
@@ -4637,7 +4637,7 @@ fn llstaticallocas_block_ctxt(fcx: @fn_ctxt) -> @block_ctxt {
4637
4637
parent : parent_none,
4638
4638
kind : SCOPE_BLOCK ,
4639
4639
mutable cleanups : [ ] ,
4640
- mutable cleanups_dirty : true ,
4640
+ mutable need_new_lpad : true ,
4641
4641
mutable lpad: option:: none,
4642
4642
sp : fcx. sp ,
4643
4643
fcx : fcx} ;
@@ -4649,7 +4649,7 @@ fn llderivedtydescs_block_ctxt(fcx: @fn_ctxt) -> @block_ctxt {
4649
4649
parent : parent_none,
4650
4650
kind : SCOPE_BLOCK ,
4651
4651
mutable cleanups : [ ] ,
4652
- mutable cleanups_dirty : true ,
4652
+ mutable need_new_lpad : true ,
4653
4653
mutable lpad: option:: none,
4654
4654
sp : fcx. sp ,
4655
4655
fcx : fcx} ;
0 commit comments