Skip to content
Snippets Groups Projects
Commit 5a672370 authored by David Bühler's avatar David Bühler
Browse files

[kernel] Ast_diff: fails on Code_annot that should not happen in normalized AST.

Instead of silently ignoring them and always returning `Same_body.
parent 660e0ba4
No related branches found
No related tags found
No related merge requests found
...@@ -1105,7 +1105,7 @@ and is_same_instr i i' env: body_correspondance*is_same_env = ...@@ -1105,7 +1105,7 @@ and is_same_instr i i' env: body_correspondance*is_same_env =
| Skip _, Skip _ -> `Same_body, env | Skip _, Skip _ -> `Same_body, env
| Code_annot _, Code_annot _ -> | Code_annot _, Code_annot _ ->
(* should not be present in normalized AST *) (* should not be present in normalized AST *)
`Same_body, env Kernel.fatal "Unexpected Code_annot instruction in normalized AST"
| _ -> `Body_changed, env | _ -> `Body_changed, env
and is_same_instr_list l l' env = and is_same_instr_list l l' env =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment