@@ -185,7 +185,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
185185        Cow :: Owned ( casted_args) 
186186    } 
187187
188-     fn  check_ptr_call < ' b > ( & mut  self ,  _typ :   & str ,   func_ptr :  RValue < ' gcc > ,  args :  & ' b  [ RValue < ' gcc > ] )  -> Cow < ' b ,  [ RValue < ' gcc > ] >  { 
188+     fn  check_ptr_call < ' b > ( & mut  self ,  func_ptr :  RValue < ' gcc > ,  args :  & ' b  [ RValue < ' gcc > ] )  -> Cow < ' b ,  [ RValue < ' gcc > ] >  { 
189189        let  mut  all_args_match = true ; 
190190        let  mut  param_types = vec ! [ ] ; 
191191        let  gcc_func = func_ptr. get_type ( ) . dyncast_function_ptr_type ( ) . expect ( "function ptr" ) ; 
@@ -256,7 +256,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
256256        self . block . get_function ( ) 
257257    } 
258258
259-     fn  function_call ( & mut  self ,  func :  RValue < ' gcc > ,  args :  & [ RValue < ' gcc > ] ,   _funclet :   Option < & Funclet > )  -> RValue < ' gcc >  { 
259+     fn  function_call ( & mut  self ,  func :  RValue < ' gcc > ,  args :  & [ RValue < ' gcc > ] )  -> RValue < ' gcc >  { 
260260        // TODO(antoyo): remove when the API supports a different type for functions. 
261261        let  func:  Function < ' gcc >  = self . cx . rvalue_as_function ( func) ; 
262262        let  args = self . check_call ( "call" ,  func,  args) ; 
@@ -299,7 +299,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
299299            llvm:: adjust_intrinsic_arguments ( & self ,  gcc_func,  args. into ( ) ,  & func_name,  original_function_name) 
300300        } ; 
301301        let  args_adjusted = args. len ( )  != previous_arg_count; 
302-         let  args = self . check_ptr_call ( "call" ,   func_ptr,  & * args) ; 
302+         let  args = self . check_ptr_call ( func_ptr,  & * args) ; 
303303
304304        // gccjit requires to use the result of functions, even when it's not used. 
305305        // That's why we assign the result to a local or call add_eval(). 
@@ -333,7 +333,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
333333        } 
334334    } 
335335
336-     pub  fn  overflow_call ( & self ,  func :  Function < ' gcc > ,  args :  & [ RValue < ' gcc > ] ,   _funclet :   Option < & Funclet > )  -> RValue < ' gcc >  { 
336+     pub  fn  overflow_call ( & self ,  func :  Function < ' gcc > ,  args :  & [ RValue < ' gcc > ] )  -> RValue < ' gcc >  { 
337337        // gccjit requires to use the result of functions, even when it's not used. 
338338        // That's why we assign the result to a local. 
339339        let  return_type = self . context . new_type :: < bool > ( ) ; 
@@ -1386,7 +1386,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
13861386        // FIXME(antoyo): remove when having a proper API. 
13871387        let  gcc_func = unsafe  {  std:: mem:: transmute ( func)  } ; 
13881388        let  call = if  self . functions . borrow ( ) . values ( ) . any ( |value| * value == gcc_func)  { 
1389-             self . function_call ( func,  args,  funclet ) 
1389+             self . function_call ( func,  args) 
13901390        } 
13911391        else  { 
13921392            // If it's a not function that was defined, it's a function pointer. 
0 commit comments