summaryrefslogtreecommitdiff
path: root/compiler/InterpreterStatements.ml
diff options
context:
space:
mode:
authorSon Ho2023-01-05 23:11:26 +0100
committerSon HO2023-02-03 11:21:46 +0100
commitefba91b5cc65d83c3f4d8a0d282eeda520abe82a (patch)
tree9af8c05626e89bf0f5abc94ff443b3f8194d6903 /compiler/InterpreterStatements.ml
parentace526e4d32d17ab73bcc2cdb3726cddcae8b1c4 (diff)
Add more loop examples and fix issues
Diffstat (limited to '')
-rw-r--r--compiler/InterpreterStatements.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/InterpreterStatements.ml b/compiler/InterpreterStatements.ml
index fe508f6b..f5b1111e 100644
--- a/compiler/InterpreterStatements.ml
+++ b/compiler/InterpreterStatements.ml
@@ -811,12 +811,12 @@ let rec eval_statement (config : C.config) (st : A.statement) : st_cm_fun =
let expr = assign_to_place config rv p (cf Unit) ctx in
(* Update the synthesized AST - here we store meta-information.
* We do it only in specific cases (it is not always useful, and
- * also it can lead to issues - for instance, if we borrow an
+ * also it can lead to issues - for instance, if we borrow a
* reserved borrow, we later can't translate it to pure values...) *)
match rvalue with
| E.Global _ -> raise (Failure "Unreachable")
| E.Use _
- | E.Ref (_, (E.Shared | E.Mut | E.TwoPhaseMut))
+ | E.Ref (_, (E.Shared | E.Mut | E.TwoPhaseMut | E.Shallow))
| E.UnaryOp _ | E.BinaryOp _ | E.Discriminant _
| E.Aggregate _ ->
let rp = rvalue_get_place rvalue in