aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pretyping/evd.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/pretyping/evd.ml b/pretyping/evd.ml
index fe96aa347d..60b1da7049 100644
--- a/pretyping/evd.ml
+++ b/pretyping/evd.ml
@@ -339,7 +339,7 @@ let evar_universe_context_set diff ctx =
match Univ.LMap.find l ctx.uctx_univ_variables with
| Some u -> Univ.Constraint.add (l, Univ.Eq, Option.get (Univ.Universe.level u)) cstrs
| None -> cstrs
- with Not_found -> cstrs)
+ with Not_found | Option.IsNone -> cstrs)
(Univ.Instance.levels (Univ.UContext.instance diff)) Univ.Constraint.empty
in
Univ.ContextSet.add_constraints cstrs initctx