summaryrefslogtreecommitdiffstats
path: root/bytecomp/lambda.ml
diff options
context:
space:
mode:
Diffstat (limited to 'bytecomp/lambda.ml')
-rw-r--r--bytecomp/lambda.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/bytecomp/lambda.ml b/bytecomp/lambda.ml
index 825389866..0e7bcf768 100644
--- a/bytecomp/lambda.ml
+++ b/bytecomp/lambda.ml
@@ -184,6 +184,7 @@ let free_variables l =
let rec is_guarded = function
Lifthenelse(cond, body, Lstaticfail) -> true
| Llet(str, id, lam, body) -> is_guarded body
+ | Levent(lam, ev) -> is_guarded lam
| _ -> false
let rec transl_path = function