From 216c0ce14ef102fc63e789908f91dd1491eec0ac Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 28 Nov 2018 13:29:25 -0800 Subject: [PATCH] Fix the scope of the ScopeGuard in `call_wasm`. --- lib/execute/src/traphandlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/execute/src/traphandlers.rs b/lib/execute/src/traphandlers.rs index a435269569..9d1f4efe81 100644 --- a/lib/execute/src/traphandlers.rs +++ b/lib/execute/src/traphandlers.rs @@ -88,7 +88,7 @@ where { // In case wasm code calls Rust that panics and unwinds past this point, // ensure that JMP_BUFS is unwound to its incoming state. - let _ = ScopeGuard::new(); + let _guard = ScopeGuard::new(); JMP_BUFS.with(|bufs| { let mut buf = unsafe { mem::uninitialized() };