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

[kernel] Marks arrays as having their address taken when their address is taken.

parent e35ef29b
No related branches found
No related tags found
No related merge requests found
......@@ -1185,10 +1185,7 @@ let mkAddrOfAndMark loc ((b, off) as lval) : exp =
begin match lastOffset off with
| NoOffset ->
(match b with
| Var vi ->
(* Do not mark arrays as having their address taken. *)
if not (isArrayType vi.vtype) then
vi.vaddrof <- true
| Var vi -> vi.vaddrof <- true
| _ -> ())
| Index _ -> ()
| Field(fi,_) -> fi.faddrof <- true
......
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