File tree Expand file tree Collapse file tree
crates/wasmtime/src/runtime/vm/sys/unix Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33use crate :: prelude:: * ;
44use crate :: runtime:: vm:: SendSyncPtr ;
55use core:: ptr:: NonNull ;
6+ use wasmtime_environ:: collections:: Vec ;
67
78/// Represents a registration of function unwind information for System V ABI.
89pub struct UnwindRegistration {
@@ -97,7 +98,7 @@ impl UnwindRegistration {
9798 if current != start {
9899 __register_frame ( current) ;
99100 let cur = NonNull :: new ( current. cast_mut ( ) ) . unwrap ( ) ;
100- registrations. push ( SendSyncPtr :: new ( cur) ) ;
101+ registrations. push ( SendSyncPtr :: new ( cur) ) ? ;
101102 }
102103
103104 // Move to the next table entry (+4 because the length itself is
@@ -109,7 +110,7 @@ impl UnwindRegistration {
109110 // entry of length 0
110111 __register_frame ( unwind_info) ;
111112 let info = NonNull :: new ( unwind_info. cast_mut ( ) ) . unwrap ( ) ;
112- registrations. push ( SendSyncPtr :: new ( info) ) ;
113+ registrations. push ( SendSyncPtr :: new ( info) ) ? ;
113114 }
114115 }
115116
You can’t perform that action at this time.
0 commit comments