ASan: add initial support for handling llvm.lifetime intrinsics in ASan - emit calls...
authorAlexey Samsonov <samsonov@google.com>
Tue, 4 Dec 2012 01:34:23 +0000 (01:34 +0000)
committerAlexey Samsonov <samsonov@google.com>
Tue, 4 Dec 2012 01:34:23 +0000 (01:34 +0000)
commitf985f44b13681071e585acb7a5703a2c1c23b6ce
tree23b87f4841c89e7bb002b286417c7f8a09688361
parentf94e8c4cafc6a2ce7ff5c0c46084d3c38c2921f6
ASan: add initial support for handling llvm.lifetime intrinsics in ASan - emit calls into runtime library that poison memory for local variables when their lifetime is over and unpoison memory when their lifetime begins.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169200 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp
test/Instrumentation/AddressSanitizer/lifetime.ll [new file with mode: 0644]