From 79043c19238559a7daea7b495e604ef00a6b2a8c Mon Sep 17 00:00:00 2001 From: Brian Campbell Date: Fri, 13 Oct 2017 17:33:09 +0100 Subject: Handle bitvector_access in constant propagation --- src/monomorphise.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/monomorphise.ml b/src/monomorphise.ml index 70b48903..cad2f6aa 100644 --- a/src/monomorphise.ml +++ b/src/monomorphise.ml @@ -699,7 +699,7 @@ let try_app (l,ann) (Id_aux (id,_),args) = match args with | [E_aux (E_lit (L_aux (L_num _,_)),_) as exp] -> Some exp | _ -> None - else if id = Id "vector_access" then + else if id = Id "vector_access" || id = Id "bitvector_access" then match args with | [E_aux (E_lit L_aux ((L_hex _ | L_bin _) as lit,_),_); E_aux (E_lit L_aux (L_num i,_),_)] -> -- cgit v1.2.3