Skip to content

Commit 87a979a

Browse files
committed
Make update_one case handling explicit
1 parent 65e1ccc commit 87a979a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/analyses/base.ml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,10 +1731,12 @@ struct
17311731
effect_on_arrays ask with_dep
17321732
end
17331733
in
1734-
let update_one x store =
1735-
match Addr.to_mval x with
1736-
| Some x -> update_one_addr x store
1737-
| None -> store
1734+
let update_one (x : Addr.t) store =
1735+
match x with
1736+
| Addr x -> update_one_addr x store
1737+
| NullPtr
1738+
| UnknownPtr
1739+
| StrPtr _ -> store
17381740
in
17391741
if AD.is_empty lval then
17401742
st

0 commit comments

Comments
 (0)