[ASan] Minor fixes to dynamic allocas handling:
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 22 Oct 2015 19:51:59 +0000 (19:51 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 22 Oct 2015 19:51:59 +0000 (19:51 +0000)
commitbf8252829fe330fe62fd46e642009f11d3e22a21
treed03415792d1fe1bcf521e0957fd08d9ee55a8d02
parentffd4b26c0e55674754a8787456bd2ba520ba0d56
[ASan] Minor fixes to dynamic allocas handling:

* Don't instrument promotable dynamic allocas:
  We already have a test that checks that promotable dynamic allocas are
  ignored, as well as static promotable allocas. Make sure this test will
  still pass if/when we enable dynamic alloca instrumentation by default.

* Handle lifetime intrinsics before handling dynamic allocas:
  lifetime intrinsics may refer to dynamic allocas, so we need to emit
  instrumentation before these dynamic allocas would be replaced.

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

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