[Lint] Use MemoryLocation
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 19 Nov 2020 19:53:27 +0000 (20:53 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 19 Nov 2020 19:55:25 +0000 (20:55 +0100)
commit22ec72f803d67d173ca3733836763d7b981bb84f
tree79934475ad65312c910997861197c6710418002b
parent389ef79a07850373e2a1f5653d33ce5924bcfe19
[Lint] Use MemoryLocation

Instead of separately passing pointer and size, make use of
MemoryLocation. This allows us to also reuse all the existing
logic for determining the MemoryLocation correponding to an
instruction or call argument.

Not quite NFC because used locations may be more precise in some
cases.
llvm/lib/Analysis/Lint.cpp