@@ -11,8 +11,8 @@ use rustc_middle::ty::print::{with_no_trimmed_paths, with_no_visible_paths};
11
11
use rustc_middle:: ty:: { self , Instance , List , Ty } ;
12
12
use rustc_middle:: { bug, span_bug} ;
13
13
use rustc_session:: config:: OptLevel ;
14
+ use rustc_span:: Span ;
14
15
use rustc_span:: source_map:: Spanned ;
15
- use rustc_span:: { Span , sym} ;
16
16
use rustc_target:: callconv:: { ArgAbi , FnAbi , PassMode } ;
17
17
use tracing:: { debug, info} ;
18
18
@@ -965,20 +965,13 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
965
965
let args: Vec < _ > =
966
966
args. iter ( ) . map ( |arg| self . codegen_operand ( bx, & arg. node ) ) . collect ( ) ;
967
967
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,
982
975
) {
983
976
Ok ( ( ) ) => {
984
977
if let ReturnDest :: IndirectOperand ( dst, _) = ret_dest {
@@ -1644,7 +1637,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1644
1637
tuple. layout . fields . count ( )
1645
1638
}
1646
1639
1647
- fn get_caller_location (
1640
+ pub ( super ) fn get_caller_location (
1648
1641
& mut self ,
1649
1642
bx : & mut Bx ,
1650
1643
source_info : mir:: SourceInfo ,
0 commit comments