Skip to content
Snippets Groups Projects
Commit 77312f35 authored by Virgile Prevosto's avatar Virgile Prevosto Committed by David Bühler
Browse files

[kernel] AST diff: use existing function in Cil

parent f96d50ee
No related branches found
No related tags found
No related merge requests found
......@@ -1121,9 +1121,8 @@ and is_same_instr_list l l' env =
is_same_instr i i' env &&> is_same_instr_list tl tl'
and same_switch_labels l l' env =
let is_switch_lab = function Label _ -> false | Case _ | Default _ -> true in
let l = List.filter is_switch_lab l in
let l' = List.filter is_switch_lab l' in
let l = List.filter Cil.is_case_label l in
let l' = List.filter Cil.is_case_label l' in
let is_same_label lab lab' =
match lab, lab' with
| (Label _ as l, _) | (_, (Label _ as l)) ->
......
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