aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/cbytegen.ml
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cbytegen.ml')
-rw-r--r--kernel/cbytegen.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/cbytegen.ml b/kernel/cbytegen.ml
index 36a022fd9..6fd1c689f 100644
--- a/kernel/cbytegen.ml
+++ b/kernel/cbytegen.ml
@@ -501,11 +501,12 @@ let rec compile_constr reloc c sz cont =
| Evar _ -> invalid_arg "Cbytegen.compile_constr : Evar"
| Proj (p,c) ->
(* compile_const reloc p [|c|] sz cont *)
- let cb = lookup_constant p !global_env in
+ let kn = Projection.constant p in
+ let cb = lookup_constant kn !global_env in
(* TODO: better representation of projections *)
let pb = Option.get cb.const_proj in
let args = Array.make pb.proj_npars mkProp in
- compile_const reloc p Univ.Instance.empty (Array.append args [|c|]) sz cont
+ compile_const reloc kn Univ.Instance.empty (Array.append args [|c|]) sz cont
| Cast(c,_,_) -> compile_constr reloc c sz cont