[MemoryLocation] Use getForArgument in getForSource/getForDest. (NFC)
authorFlorian Hahn <flo@fhahn.com>
Sun, 5 Dec 2021 11:12:44 +0000 (11:12 +0000)
committerFlorian Hahn <flo@fhahn.com>
Sun, 5 Dec 2021 11:13:14 +0000 (11:13 +0000)
commit203f29b40ca3a248307ab75af04577f10173591f
tree7c7dc72918e8afabe96db83f876583bb3b40d168
parent21562c03ed17ce288a0de095e0f2ae4f452d3359
[MemoryLocation] Use getForArgument in getForSource/getForDest. (NFC)

getForArgument already knows how to extract a memory location for all
memory intrinsics. Use it instead of duplicating the logic.
llvm/lib/Analysis/MemoryLocation.cpp