@@ -11,8 +11,8 @@ use rustc_middle::ty::print::{with_no_trimmed_paths, with_no_visible_paths};
1111use rustc_middle:: ty:: { self , Instance , List , Ty } ;
1212use rustc_middle:: { bug, span_bug} ;
1313use rustc_session:: config:: OptLevel ;
14+ use rustc_span:: Span ;
1415use rustc_span:: source_map:: Spanned ;
15- use rustc_span:: { Span , sym} ;
1616use rustc_target:: callconv:: { ArgAbi , FnAbi , PassMode } ;
1717use tracing:: { debug, info} ;
1818
@@ -965,20 +965,13 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
965965 let args: Vec < _ > =
966966 args. iter ( ) . map ( |arg| self . codegen_operand ( bx, & arg. node ) ) . collect ( ) ;
967967
968- if matches ! ( intrinsic, ty:: IntrinsicDef { name: sym:: caller_location, .. } )
969- {
970- let location = self . get_caller_location ( bx, source_info) ;
971-
972- assert_eq ! ( llargs, [ ] ) ;
973- if let ReturnDest :: IndirectOperand ( tmp, _) = ret_dest {
974- location. val . store ( bx, tmp) ;
975- }
976- self . store_return ( bx, ret_dest, & fn_abi. ret , location. immediate ( ) ) ;
977- return helper. funclet_br ( self , bx, target. unwrap ( ) , mergeable_succ) ;
978- }
979-
980- match Self :: codegen_intrinsic_call (
981- bx, instance, fn_abi, & args, dest, fn_span,
968+ match self . codegen_intrinsic_call (
969+ bx,
970+ instance,
971+ fn_abi,
972+ & args,
973+ dest,
974+ source_info,
982975 ) {
983976 Ok ( ( ) ) => {
984977 if let ReturnDest :: IndirectOperand ( dst, _) = ret_dest {
@@ -1667,7 +1660,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
16671660 tuple. layout . fields . count ( )
16681661 }
16691662
1670- fn get_caller_location (
1663+ pub ( super ) fn get_caller_location (
16711664 & mut self ,
16721665 bx : & mut Bx ,
16731666 source_info : mir:: SourceInfo ,
0 commit comments