Skip to content

Commit f4d8d8c

Browse files
author
blake2-ppc
committed
trans::build: Change @mut Block to &Block or &mut Block
Use &mut Block and &Block references where possible in the builder functions in trans::build. @mut Block remains in a few functions where I could not (not yet at least) track down the runtime borrowck failures.
1 parent b88517e commit f4d8d8c

File tree

6 files changed

+129
-116
lines changed

6 files changed

+129
-116
lines changed

src/librustc/middle/trans/base.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,10 @@ pub fn cleanup_and_leave(bcx: @mut Block,
14071407
}
14081408
match leave {
14091409
Some(target) => Br(bcx, target),
1410-
None => { Resume(bcx, Load(bcx, bcx.fcx.personality.unwrap())); }
1410+
None => {
1411+
let ll_load = Load(bcx, bcx.fcx.personality.unwrap());
1412+
Resume(bcx, ll_load);
1413+
}
14111414
}
14121415
}
14131416

0 commit comments

Comments
 (0)