[PATCH] D52497: [MSan] Add meaningful debug locations to [K]MSan hooks poisoning local variables
Alexander Potapenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 25 07:48:27 PDT 2018
glider created this revision.
glider added reviewers: eugenis, aprantl, rnk.
Herald added a subscriber: llvm-commits.
Add DILocation pointing to the local variable declaration site to every MSan/KMSAN hook that poisons that local variable.
The DILocation is picked from one of the debug intrinsics referencing the corresponding alloca instruction and being:
- either a `llvm.dbg.declare` intrinsic;
- or a `llvm.dbg.addr` intrinsic;
- or a `llvm.dbg.value` intrinsic with `DW_OP_deref` tag.
Repository:
rL LLVM
https://reviews.llvm.org/D52497
Files:
lib/Transforms/Instrumentation/MemorySanitizer.cpp
test/Instrumentation/MemorySanitizer/alloca-dbginfo.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52497.166914.patch
Type: text/x-patch
Size: 7214 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180925/93af88cb/attachment.bin>
More information about the llvm-commits
mailing list