@@ -2439,7 +2439,7 @@ impl<'a> FnCompiler<'a> {
2439
2439
2440
2440
let is_first_argument_ptr = first_argument_type. is_ptr ( context) ;
2441
2441
let is_return_type_ptr = return_type_ir_type. is_ptr ( context) ;
2442
-
2442
+
2443
2443
// Both types needs to be pointers
2444
2444
// or both need to be non pointers
2445
2445
let final_value = match ( is_first_argument_ptr, is_return_type_ptr) {
@@ -2448,14 +2448,13 @@ impl<'a> FnCompiler<'a> {
2448
2448
"__transmute both types need to be references, or both need to be not references" ,
2449
2449
span. clone ( ) ,
2450
2450
) ) ;
2451
- } ,
2451
+ }
2452
2452
( true , true ) => {
2453
2453
let first_argument_value = first_argument_value. value ( ) ;
2454
- self
2455
- . current_block
2454
+ self . current_block
2456
2455
. append ( context)
2457
2456
. cast_ptr ( first_argument_value, return_type_ir_type)
2458
- } ,
2457
+ }
2459
2458
( false , false ) => {
2460
2459
// check IR sizes match
2461
2460
let first_arg_size = first_argument_type. size ( context) . in_bytes ( ) ;
@@ -2469,15 +2468,16 @@ impl<'a> FnCompiler<'a> {
2469
2468
}
2470
2469
2471
2470
let return_type_ir_type_ptr = Type :: new_typed_pointer ( context, return_type_ir_type) ;
2472
- let first_argument_ptr = store_to_memory ( self , context, first_argument_value) ?. expect_memory ( ) ;
2471
+ let first_argument_ptr =
2472
+ store_to_memory ( self , context, first_argument_value) ?. expect_memory ( ) ;
2473
2473
2474
2474
let casted_ptr = self
2475
2475
. current_block
2476
2476
. append ( context)
2477
2477
. cast_ptr ( first_argument_ptr, return_type_ir_type_ptr) ;
2478
2478
2479
2479
self . current_block . append ( context) . load ( casted_ptr)
2480
- } ,
2480
+ }
2481
2481
} ;
2482
2482
2483
2483
Ok ( TerminatorValue :: new (
0 commit comments