@@ -170,7 +170,8 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'tcx> {
170
170
}
171
171
172
172
if let Some((ret_dest, target)) = destination {
173
- let mut ret_bx = fx.build_block(target);
173
+ let target_llbb = fx.llbb(target);
174
+ let mut ret_bx = Bx::build(fx.cx, target_llbb);
174
175
fx.set_debug_loc(&mut ret_bx, self.terminator.source_info);
175
176
fx.store_return(&mut ret_bx, ret_dest, &fn_abi.ret, invokeret);
176
177
}
@@ -1023,7 +1024,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1023
1024
1024
1025
impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1025
1026
pub fn codegen_block(&mut self, bb: mir::BasicBlock) {
1026
- let mut bx = self.build_block(bb);
1027
+ let llbb = self.llbb(bb);
1028
+ let mut bx = Bx::build(self.cx, llbb);
1027
1029
let mir = self.mir;
1028
1030
let data = &mir[bb];
1029
1031
@@ -1465,11 +1467,6 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1465
1467
})
1466
1468
}
1467
1469
1468
- pub fn build_block(&mut self, bb: mir::BasicBlock) -> Bx {
1469
- let llbb = self.llbb(bb);
1470
- Bx::build(self.cx, llbb)
1471
- }
1472
-
1473
1470
fn make_return_dest(
1474
1471
&mut self,
1475
1472
bx: &mut Bx,
0 commit comments