File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 1ff88982fe07b341c79345277f857211eccc5a5e
2
+ refs/heads/master: 2ff0662eaef0af2a7a0173e5da53fe271c217e38
Original file line number Diff line number Diff line change @@ -917,13 +917,17 @@ impure fn trans_expr(@block_ctxt cx, &ast.expr e) -> result {
917
917
case ( ast. item_fn ( _, ?ff, _, _) ) {
918
918
outptr = cx. build . Alloca ( type_of ( cx. fcx . tcx , ff. output ) ) ;
919
919
}
920
+ case ( _) {
921
+ cx. fcx . tcx . sess . unimpl ( "call to non-item" ) ;
922
+ }
920
923
}
921
924
auto args_res = trans_exprs ( f_res. _0 . bcx , args) ;
922
925
auto llargs = vec ( outptr,
923
926
cx. fcx . lltaskptr ) ;
924
927
llargs += args_res. _1 ;
928
+ auto call_val = args_res. _0 . build . Call ( f_res. _0 . val , llargs) ;
925
929
ret res( args_res. _0 ,
926
- args_res. _0 . build . Call ( f_res . _0 . val , llargs ) ) ;
930
+ args_res. _0 . build . Load ( outptr ) ) ;
927
931
}
928
932
929
933
}
You can’t perform that action at this time.
0 commit comments