Correctly restore EP after it has been used by the translation of the TRY instruction.

[GB.JIT]
* BUG: Correctly restore EP after it has been used by the translation of the TRY instruction.
This commit is contained in:
gambas 2018-11-16 01:33:51 +01:00
parent a66ce09e79
commit f0f113da2b

View file

@ -3244,8 +3244,8 @@ _QUIT:
_TRY:
//declare(&_decl_tp, "VALUE *tp");
JIT_print(" EP = sp;\n");
declare(&_decl_tp, "VALUE *tp");
JIT_print(" tp = EP; EP = sp;\n");
JIT_print(" TRY {\n");
p++;
goto _MAIN;
@ -3262,7 +3262,7 @@ _END_TRY:
JIT_print(" *JIT.got_error = 1;\n");
JIT_print(" JIT.error_set_last(FALSE);\n");
JIT_print(" } END_TRY\n");
JIT_print(" EP = NULL;\n");
JIT_print(" EP = tp;\n");
goto _MAIN;
_CATCH: