unwind/wasm: fix compile error by wrapping wasm_throw in unsafe block
This commit is contained in:
parent
f21b4c0888
commit
78dc744e93
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ pub unsafe fn _Unwind_RaiseException(exception: *mut _Unwind_Exception) -> _Unwi
|
|||
// corresponds with llvm::WebAssembly::Tag::CPP_EXCEPTION
|
||||
// in llvm-project/llvm/include/llvm/CodeGen/WasmEHFuncInfo.h
|
||||
const CPP_EXCEPTION_TAG: i32 = 0;
|
||||
wasm_throw(CPP_EXCEPTION_TAG, exception.cast())
|
||||
unsafe { wasm_throw(CPP_EXCEPTION_TAG, exception.cast()) }
|
||||
}
|
||||
_ => {
|
||||
let _ = exception;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue