@@ -83,11 +83,8 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'tcx> {
83
83
// Cross-funclet jump - need a trampoline
84
84
debug_assert ! ( base:: wants_new_eh_instructions( fx. cx. tcx( ) . sess) ) ;
85
85
debug ! ( "llbb_with_cleanup: creating cleanup trampoline for {:?}" , target) ;
86
- let trampoline_llbb = Bx :: append_block (
87
- fx. cx ,
88
- fx. llfn ,
89
- format_args ! ( "{:?}_cleanup_trampoline_{:?}" , self . bb, target) ,
90
- ) ;
86
+ let name = & format ! ( "{:?}_cleanup_trampoline_{:?}" , self . bb, target) ;
87
+ let trampoline_llbb = Bx :: append_block ( fx. cx , fx. llfn , name) ;
91
88
let mut trampoline_bx = Bx :: build ( fx. cx , trampoline_llbb) ;
92
89
trampoline_bx. cleanup_ret ( self . funclet ( fx) . unwrap ( ) , Some ( lltarget) ) ;
93
90
trampoline_llbb
@@ -1568,7 +1565,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1568
1565
fn landing_pad_for_uncached ( & mut self , bb : mir:: BasicBlock ) -> Bx :: BasicBlock {
1569
1566
let llbb = self . llbb ( bb) ;
1570
1567
if base:: wants_new_eh_instructions ( self . cx . sess ( ) ) {
1571
- let cleanup_bb = Bx :: append_block ( self . cx , self . llfn , format_args ! ( "funclet_{bb:?}" ) ) ;
1568
+ let cleanup_bb = Bx :: append_block ( self . cx , self . llfn , & format ! ( "funclet_{bb:?}" ) ) ;
1572
1569
let mut cleanup_bx = Bx :: build ( self . cx , cleanup_bb) ;
1573
1570
let funclet = cleanup_bx. cleanup_pad ( None , & [ ] ) ;
1574
1571
cleanup_bx. br ( llbb) ;
@@ -1691,7 +1688,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1691
1688
pub fn try_llbb ( & mut self , bb : mir:: BasicBlock ) -> Option < Bx :: BasicBlock > {
1692
1689
match self . cached_llbbs [ bb] {
1693
1690
CachedLlbb :: None => {
1694
- let llbb = Bx :: append_block ( self . cx , self . llfn , format_args ! ( "{bb:?}" ) ) ;
1691
+ let llbb = Bx :: append_block ( self . cx , self . llfn , & format ! ( "{bb:?}" ) ) ;
1695
1692
self . cached_llbbs [ bb] = CachedLlbb :: Some ( llbb) ;
1696
1693
Some ( llbb)
1697
1694
}
0 commit comments