]> granicus.if.org Git - llvm/commit
Make sure that not interesting allocas are not instrumented.
authorVitaly Buka <vitalybuka@google.com>
Thu, 9 Jun 2016 23:31:59 +0000 (23:31 +0000)
committerVitaly Buka <vitalybuka@google.com>
Thu, 9 Jun 2016 23:31:59 +0000 (23:31 +0000)
commite330b7d89a050cc341ebea5834ea286dd7893cb7
tree0b8e08c323133d47b6895c998fc02c2b577f8aff
parentdcd25f414910aed01bf77d776387808baa85ea82
Make sure that not interesting allocas are not instrumented.

Summary:
We failed to unpoison uninteresting allocas on return as unpoisoning is part of
main instrumentation which skips such allocas.

Added check -asan-instrument-allocas for dynamic allocas. If instrumentation of
dynamic allocas is disabled it will not will not be unpoisoned.

PR27453

Reviewers: kcc, eugenis

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D21207

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