File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -484,7 +484,6 @@ TEST_XFAILS_RUSTC := $(CONST_TAG_XFAILS) \
484
484
mlist-cycle.rs \
485
485
mlist.rs \
486
486
mutable-alias-vec.rs \
487
- native2.rs \
488
487
native-opaque-type.rs \
489
488
obj-as.rs \
490
489
obj-dtor.rs \
Original file line number Diff line number Diff line change @@ -4829,6 +4829,11 @@ fn decl_native_fn_and_pair(@crate_ctxt cx,
4829
4829
let str s = cx. names . next ( "_rust_wrapper" ) + sep ( ) + name;
4830
4830
let ValueRef wrapper_fn = decl_fastcall_fn ( cx. llmod , s, wrapper_type) ;
4831
4831
4832
+ // Build the wrapper.
4833
+ auto fcx = new_fn_ctxt ( cx, wrapper_fn) ;
4834
+ auto bcx = new_top_block_ctxt ( fcx) ;
4835
+ bcx. build . RetVoid ( ) ;
4836
+
4832
4837
// Declare the global constant pair that points to it.
4833
4838
auto wrapper_pair_type = T_fn_pair ( cx. tn , wrapper_type) ;
4834
4839
let str ps = cx. names . next ( "_rust_wrapper_pair" ) + sep ( ) + name;
You can’t perform that action at this time.
0 commit comments