[Sanitizers] Use getParamByValType() (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 18 May 2020 19:50:15 +0000 (21:50 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 18 May 2020 20:06:18 +0000 (22:06 +0200)
commit47a0e9f49b903aa4ef821d2c7a679a145ee983f9
treeb0054f811a64b5550458d8991cb74cb2fd7a733a
parent3f5f8f39734e88c797b003d4a0002b2eaef1ac17
[Sanitizers] Use getParamByValType() (NFC)

Instead of fetching the pointer element type.
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp