OSDN Git Service

Fix detection of stack-use-after scope for char arrays.
authorVitaly Buka <vitalybuka@google.com>
Fri, 22 Jul 2016 00:56:17 +0000 (00:56 +0000)
committerVitaly Buka <vitalybuka@google.com>
Fri, 22 Jul 2016 00:56:17 +0000 (00:56 +0000)
commitcb5c57410592b4f43761a4a2320dbdc4308217be
tree717db5c643663e94f2f1b95d8c7f8fcbf9cf6071
parentb00a4057b3205ba8faa6f27d435ef77cd9e6d311
Fix detection of stack-use-after scope for char arrays.

Summary:
Clang inserts GetElementPtrInst so findAllocaForValue was not
able to find allocas.

PR27453

Reviewers: kcc, eugenis

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276374 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp
test/Instrumentation/AddressSanitizer/lifetime.ll