Skip to content

Instantly share code, notes, and snippets.

@agentzh
Created December 30, 2019 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agentzh/ad6e7ca910a7218b9a46399bf37295ed to your computer and use it in GitHub Desktop.
Save agentzh/ad6e7ca910a7218b9a46399bf37295ed to your computer and use it in GitHub Desktop.
diff --git a/translate.cxx b/translate.cxx
index b23aa8c1f..2accb5888 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -3873,6 +3873,8 @@ void c_unparser::visit_try_block (try_block *s)
o->newline() << "if (likely(c->last_error == NULL)) goto out;";
+ o->newline() << "if (unlikely (c->actionremaining <= 0)) goto out;";
+
if (s->catch_error_var)
{
var cev(getvar(s->catch_error_var->referent, s->catch_error_var->tok));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment