an address passed to a const pointer argument should not be considered a write
commita0a72a3a2b9e9ba85a7255e36a4576dd6e13c9d7
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 6 Nov 2011 08:52:58 +0000 (6 09:52 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 6 Nov 2011 08:56:28 +0000 (6 09:56 +0100)
treeb937ecb686738afb41a4f85bb60a32ac81d566ce
parent5ef339bc4e595f74394c14b3a03390d317d33b5c
an address passed to a const pointer argument should not be considered a write

If the address of some scalar is taken, we assume it may be written.
However, if this address is simply passed to a function through an
argument of const pointer type, then there is no need to do so.
Especially since elsewhere in the code, we consider such constructs
to be a read from the scalar rather than a write.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc