@@ -83,11 +83,8 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'tcx> {
8383 // Cross-funclet jump - need a trampoline
8484 debug_assert ! ( base:: wants_new_eh_instructions( fx. cx. tcx( ) . sess) ) ;
8585 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) ;
9188 let mut trampoline_bx = Bx :: build ( fx. cx , trampoline_llbb) ;
9289 trampoline_bx. cleanup_ret ( self . funclet ( fx) . unwrap ( ) , Some ( lltarget) ) ;
9390 trampoline_llbb
@@ -1568,7 +1565,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
15681565 fn landing_pad_for_uncached ( & mut self , bb : mir:: BasicBlock ) -> Bx :: BasicBlock {
15691566 let llbb = self . llbb ( bb) ;
15701567 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:?}" ) ) ;
15721569 let mut cleanup_bx = Bx :: build ( self . cx , cleanup_bb) ;
15731570 let funclet = cleanup_bx. cleanup_pad ( None , & [ ] ) ;
15741571 cleanup_bx. br ( llbb) ;
@@ -1691,7 +1688,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
16911688 pub fn try_llbb ( & mut self , bb : mir:: BasicBlock ) -> Option < Bx :: BasicBlock > {
16921689 match self . cached_llbbs [ bb] {
16931690 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:?}" ) ) ;
16951692 self . cached_llbbs [ bb] = CachedLlbb :: Some ( llbb) ;
16961693 Some ( llbb)
16971694 }
0 commit comments