diff options
author | Son Ho | 2022-01-06 15:32:41 +0100 |
---|---|---|
committer | Son Ho | 2022-01-06 15:32:41 +0100 |
commit | 38edb4c01773626b89ff527bf8a0e1b76bd1abc6 (patch) | |
tree | 6a2e3384454fde978c05b81ea57576174dc9b3c6 | |
parent | 973e14973ca857ed0b3fd69fa45901c8ae08820e (diff) |
Make a minor modification
Diffstat (limited to '')
-rw-r--r-- | src/InterpreterStatements.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/InterpreterStatements.ml b/src/InterpreterStatements.ml index 15bfb6e7..5eee5296 100644 --- a/src/InterpreterStatements.ml +++ b/src/InterpreterStatements.ml @@ -549,7 +549,9 @@ let rec eval_statement (config : C.config) (ctx : C.eval_ctx) (st : A.statement) | Ok ctx -> [ Ok (ctx, Unit) ] | Error e -> [ Error e ]) | A.Call call -> eval_function_call config ctx call - | A.Panic -> [ Error Panic ] + | A.Panic -> + S.synthesize_panic (); + [ Error Panic ] | A.Return -> [ Ok (ctx, Return) ] | A.Break i -> [ Ok (ctx, Break i) ] | A.Continue i -> [ Ok (ctx, Continue i) ] |