SeqCst->Relaxed in panic_unwind/emcc.
SeqCst is unnecessary here.
This commit is contained in:
parent
a2c74b8445
commit
5e4cc6f694
@ -84,7 +84,7 @@ struct CatchData {
|
||||
super::__rust_foreign_exception();
|
||||
}
|
||||
|
||||
let was_caught = (*adjusted_ptr).caught.swap(true, Ordering::SeqCst);
|
||||
let was_caught = (*adjusted_ptr).caught.swap(true, Ordering::Relaxed);
|
||||
if was_caught {
|
||||
// Since cleanup() isn't allowed to panic, we just abort instead.
|
||||
intrinsics::abort();
|
||||
|
Loading…
Reference in New Issue
Block a user