diff options
| author | Alon Zakai <alonzakai@gmail.com> | 2014-01-12 18:12:15 -0800 |
|---|---|---|
| committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-12 18:12:15 -0800 |
| commit | 0e03a7ea844d378fc17ba7a12758284f52f8fd46 (patch) | |
| tree | 8c239c5442a457efb34212209e56cf7f69b13e79 | |
| parent | d4c6531ed1078cb79b6442d652f65dc6e66a05d9 (diff) | |
clear threw variable after each invoke
| -rw-r--r-- | lib/Target/JSBackend/CallHandlers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/JSBackend/CallHandlers.h b/lib/Target/JSBackend/CallHandlers.h index 3b7887fceb..1f63ca9715 100644 --- a/lib/Target/JSBackend/CallHandlers.h +++ b/lib/Target/JSBackend/CallHandlers.h @@ -112,7 +112,7 @@ DEF_CALL_HANDLER(emscripten_preinvoke, { DEF_CALL_HANDLER(emscripten_postinvoke, { assert(InvokeState == 2); InvokeState = 0; - return getAssign(getJSName(CI), CI->getType()) + "__THREW__"; + return getAssign(getJSName(CI), CI->getType()) + "__THREW__; __THREW__ = 0"; }) DEF_CALL_HANDLER(emscripten_landingpad, { std::string Ret = getAssign(getJSName(CI), CI->getType()) + "___cxa_find_matching_catch(-1,-1"; |
