From 98f3621b5b0c50aaa48c86e1d6a4269d94388bd3 Mon Sep 17 00:00:00 2001 From: ppedrot Date: Tue, 13 Nov 2012 22:38:16 +0000 Subject: More monomorphizations git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15969 85f007b7-540e-0410-9357-904b9bb8a0f7 --- kernel/declarations.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/declarations.ml') diff --git a/kernel/declarations.ml b/kernel/declarations.ml index b8edcae72..b995f2e4a 100644 --- a/kernel/declarations.ml +++ b/kernel/declarations.ml @@ -127,7 +127,7 @@ let subst_const_def sub = function | OpaqueDef lc -> OpaqueDef (subst_lazy_constr sub lc) let subst_const_body sub cb = { - const_hyps = (assert (cb.const_hyps=[]); []); + const_hyps = (match cb.const_hyps with [] -> [] | _ -> assert false); const_body = subst_const_def sub cb.const_body; const_type = subst_const_type sub cb.const_type; const_body_code = Cemitcodes.subst_to_patch_subst sub cb.const_body_code; @@ -341,7 +341,7 @@ let subst_mind sub mib = { mind_record = mib.mind_record ; mind_finite = mib.mind_finite ; mind_ntypes = mib.mind_ntypes ; - mind_hyps = (assert (mib.mind_hyps=[]); []) ; + mind_hyps = (match mib.mind_hyps with [] -> [] | _ -> assert false); mind_nparams = mib.mind_nparams; mind_nparams_rec = mib.mind_nparams_rec; mind_params_ctxt = -- cgit v1.2.3