diff --git a/src/kernel_internals/typing/cabs2cil.ml b/src/kernel_internals/typing/cabs2cil.ml index 6cd61cd0df72fb115ee8edbb12bbbf1ab8c7bd68..9ee2e6f4abd2ce9dc91044cd500f6b3ea884c8d8 100644 --- a/src/kernel_internals/typing/cabs2cil.ml +++ b/src/kernel_internals/typing/cabs2cil.ml @@ -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