summaryrefslogtreecommitdiff
path: root/compiler/InterpreterBorrows.ml
diff options
context:
space:
mode:
authorSon Ho2022-11-06 18:10:59 +0100
committerSon HO2022-11-07 10:36:13 +0100
commit3b73918146ac060689526871fcbeb2baa6b429e7 (patch)
tree98aaaaac9cd1a8490c452cc0db2ea0e1ca2379e5 /compiler/InterpreterBorrows.ml
parent511b483f3ba8247aaf90ab648d54b37a04c39929 (diff)
Add ids to the dummy variables
Diffstat (limited to '')
-rw-r--r--compiler/InterpreterBorrows.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/InterpreterBorrows.ml b/compiler/InterpreterBorrows.ml
index 16aaf60a..c8a7ae7f 100644
--- a/compiler/InterpreterBorrows.ml
+++ b/compiler/InterpreterBorrows.ml
@@ -931,7 +931,7 @@ let rec end_borrow (config : C.config) (chain : borrow_or_abs_ids)
* By doing that we should have ended the target borrow (see the
* below sanity check) *)
end_abstraction config chain abs_id
- | VarId _, _ ->
+ | (VarId _ | DummyVarId _), _ ->
(* The loan is not inside the same abstraction (actually inside
* a non-abstraction value): we need to end the whole abstraction *)
end_abstraction config chain abs_id