@@ -133,6 +133,7 @@ impl<'a, 'gcc, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
133
133
func,
134
134
& args. iter ( ) . map ( |arg| arg. immediate ( ) ) . collect :: < Vec < _ > > ( ) ,
135
135
None ,
136
+ None ,
136
137
)
137
138
}
138
139
sym:: likely => self . expect ( args[ 0 ] . immediate ( ) , true ) ,
@@ -401,7 +402,7 @@ impl<'a, 'gcc, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
401
402
fn abort ( & mut self ) {
402
403
let func = self . context . get_builtin_function ( "abort" ) ;
403
404
let func: RValue < ' gcc > = unsafe { std:: mem:: transmute ( func) } ;
404
- self . call ( self . type_void ( ) , None , None , func, & [ ] , None ) ;
405
+ self . call ( self . type_void ( ) , None , None , func, & [ ] , None , None ) ;
405
406
}
406
407
407
408
fn assume ( & mut self , value : Self :: Value ) {
@@ -1103,7 +1104,7 @@ fn try_intrinsic<'a, 'b, 'gcc, 'tcx>(
1103
1104
dest : RValue < ' gcc > ,
1104
1105
) {
1105
1106
if bx. sess ( ) . panic_strategy ( ) == PanicStrategy :: Abort {
1106
- bx. call ( bx. type_void ( ) , None , None , try_func, & [ data] , None ) ;
1107
+ bx. call ( bx. type_void ( ) , None , None , try_func, & [ data] , None , None ) ;
1107
1108
// Return 0 unconditionally from the intrinsic call;
1108
1109
// we can never unwind.
1109
1110
let ret_align = bx. tcx . data_layout . i32_align . abi ;
@@ -1177,21 +1178,21 @@ fn codegen_gnu_try<'gcc>(
1177
1178
let zero = bx. cx . context . new_rvalue_zero ( bx. int_type ) ;
1178
1179
let ptr = bx. cx . context . new_call ( None , eh_pointer_builtin, & [ zero] ) ;
1179
1180
let catch_ty = bx. type_func ( & [ bx. type_i8p ( ) , bx. type_i8p ( ) ] , bx. type_void ( ) ) ;
1180
- bx. call ( catch_ty, None , None , catch_func, & [ data, ptr] , None ) ;
1181
+ bx. call ( catch_ty, None , None , catch_func, & [ data, ptr] , None , None ) ;
1181
1182
bx. ret ( bx. const_i32 ( 1 ) ) ;
1182
1183
1183
1184
// NOTE: the blocks must be filled before adding the try/catch, otherwise gcc will not
1184
1185
// generate a try/catch.
1185
1186
// FIXME(antoyo): add a check in the libgccjit API to prevent this.
1186
1187
bx. switch_to_block ( current_block) ;
1187
- bx. invoke ( try_func_ty, None , None , try_func, & [ data] , then, catch, None ) ;
1188
+ bx. invoke ( try_func_ty, None , None , try_func, & [ data] , then, catch, None , None ) ;
1188
1189
} ) ;
1189
1190
1190
1191
let func = unsafe { std:: mem:: transmute ( func) } ;
1191
1192
1192
1193
// Note that no invoke is used here because by definition this function
1193
1194
// can't panic (that's what it's catching).
1194
- let ret = bx. call ( llty, None , None , func, & [ try_func, data, catch_func] , None ) ;
1195
+ let ret = bx. call ( llty, None , None , func, & [ try_func, data, catch_func] , None , None ) ;
1195
1196
let i32_align = bx. tcx ( ) . data_layout . i32_align . abi ;
1196
1197
bx. store ( ret, dest, i32_align) ;
1197
1198
}
0 commit comments