From cc68954e80969fbc73b60c1ce6e4ad4ed553ccd7 Mon Sep 17 00:00:00 2001 From: barras Date: Mon, 19 Jun 2006 18:54:49 +0000 Subject: bug serieux efficacite de ltac git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8963 85f007b7-540e-0410-9357-904b9bb8a0f7 --- pretyping/pattern.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pretyping/pattern.ml') diff --git a/pretyping/pattern.ml b/pretyping/pattern.ml index 1453aa218b..979ecb0b17 100644 --- a/pretyping/pattern.ml +++ b/pretyping/pattern.ml @@ -132,7 +132,7 @@ let map_pattern_with_binders g f l = function let map_pattern f = map_pattern_with_binders (fun () -> ()) (fun () -> f) () let rec instantiate_pattern lvar = function - | PVar id as x -> (try List.assoc id lvar with Not_found -> x) + | PVar id as x -> (try Lazy.force(List.assoc id lvar) with Not_found -> x) | (PFix _ | PCoFix _) -> error ("Not instantiable pattern") | c -> map_pattern (instantiate_pattern lvar) c -- cgit v1.2.3