[asan] Fix the coverage.cc test broken by r196939
authorReid Kleckner <reid@kleckner.net>
Tue, 10 Dec 2013 21:49:28 +0000 (21:49 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 10 Dec 2013 21:49:28 +0000 (21:49 +0000)
commit0e33b4574b02c0a152567bbc384ba22f727851e8
tree2b07fcb78d8d0c9da7c49abc9d6c2502b9f6ea6d
parent17427fa9bb0d4dad96270542184d2a28d5626c22
[asan] Fix the coverage.cc test broken by r196939

It was failing because ASan was adding all of the following to one
function:
- dynamic alloca
- stack realignment
- inline asm

This patch avoids making the static alloca dynamic when coverage is
used.

ASan should probably not be inserting empty inline asm blobs to inhibit
duplicate tail elimination.

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