diff options
| author | Pierre-Marie Pédrot | 2018-09-17 16:49:45 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2018-09-17 16:49:45 +0200 |
| commit | f1482433ff225831d9937753f946cff2577b9309 (patch) | |
| tree | e59614016106e1672241f93cad4389d973093aa4 /kernel/cemitcodes.ml | |
| parent | eb2c11bf1c367d83cc45f4679d3bf15f25142d5c (diff) | |
| parent | a8bf1cab3f21de4a350737ef5c933af1746f54a1 (diff) | |
Merge PR #6906: [VM] Optimize structured values
Diffstat (limited to 'kernel/cemitcodes.ml')
| -rw-r--r-- | kernel/cemitcodes.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/cemitcodes.ml b/kernel/cemitcodes.ml index ca24f9b689..50f5607e31 100644 --- a/kernel/cemitcodes.ml +++ b/kernel/cemitcodes.ml @@ -14,6 +14,7 @@ open Names open Constr +open Vmvalues open Cbytecodes open Copcodes open Mod_subst @@ -357,10 +358,9 @@ let rec emit env insns remaining = match insns with type to_patch = emitcodes * patches * fv (* Substitution *) -let rec subst_strcst s sc = +let subst_strcst s sc = match sc with - | Const_sort _ | Const_b0 _ | Const_univ_level _ -> sc - | Const_bn(tag,args) -> Const_bn(tag,Array.map (subst_strcst s) args) + | Const_sort _ | Const_b0 _ | Const_univ_level _ | Const_val _ -> sc | Const_ind ind -> let kn,i = ind in Const_ind (subst_mind s kn, i) let subst_reloc s ri = |
