[Transforms][ASan] Move findAllocaForValue() to Utils/Local.cpp. NFC
authorAlexander Potapenko <glider@google.com>
Mon, 15 Apr 2019 08:59:56 +0000 (08:59 +0000)
committerAlexander Potapenko <glider@google.com>
Mon, 15 Apr 2019 08:59:56 +0000 (08:59 +0000)
commit6a63e5aa7be6de5e1df26fbcfd2f0f13ff9472bc
tree8298478d0eb84c5d98e37e3bedf5fe8aa292ce9c
parentf54328372b1a66fde0236229c5aab182065524b8
[Transforms][ASan] Move findAllocaForValue() to Utils/Local.cpp. NFC

Summary:
Factor out findAllocaForValue() from ASan so that we can use it in
MSan to handle lifetime intrinsics.

Reviewers: eugenis, pcc

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60615

llvm-svn: 358380
llvm/include/llvm/Transforms/Utils/Local.h
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/lib/Transforms/Utils/Local.cpp