@@ -92,8 +92,8 @@ impl<'a, 'gcc, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
92
92
let tcx = self . tcx ;
93
93
let callee_ty = instance. ty ( tcx, ty:: ParamEnv :: reveal_all ( ) ) ;
94
94
95
- let ( def_id, substs ) = match * callee_ty. kind ( ) {
96
- ty:: FnDef ( def_id, substs ) => ( def_id, substs ) ,
95
+ let ( def_id, fn_args ) = match * callee_ty. kind ( ) {
96
+ ty:: FnDef ( def_id, fn_args ) => ( def_id, fn_args ) ,
97
97
_ => bug ! ( "expected fn item type, found {}" , callee_ty) ,
98
98
} ;
99
99
@@ -142,7 +142,7 @@ impl<'a, 'gcc, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
142
142
}
143
143
144
144
sym:: volatile_load | sym:: unaligned_volatile_load => {
145
- let tp_ty = substs . type_at ( 0 ) ;
145
+ let tp_ty = fn_args . type_at ( 0 ) ;
146
146
let mut ptr = args[ 0 ] . immediate ( ) ;
147
147
if let PassMode :: Cast ( ty, _) = & fn_abi. ret . mode {
148
148
ptr = self . pointercast ( ptr, self . type_ptr_to ( ty. gcc_type ( self ) ) ) ;
@@ -264,7 +264,7 @@ impl<'a, 'gcc, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
264
264
265
265
sym:: raw_eq => {
266
266
use rustc_target:: abi:: Abi :: * ;
267
- let tp_ty = substs . type_at ( 0 ) ;
267
+ let tp_ty = fn_args . type_at ( 0 ) ;
268
268
let layout = self . layout_of ( tp_ty) . layout ;
269
269
let _use_integer_compare = match layout. abi ( ) {
270
270
Scalar ( _) | ScalarPair ( _, _) => true ,
0 commit comments