[safestack] Protect byval function arguments.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 1 Dec 2015 00:40:05 +0000 (00:40 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 1 Dec 2015 00:40:05 +0000 (00:40 +0000)
commitdd121fc8471347915e14b54c50409b27813e990b
treecba549187078bce3a89203f0c019afa064655781
parent390ced11080a9faa958b4b6e08e8d7fd40347ac2
[safestack] Protect byval function arguments.

Detect unsafe byval function arguments and move them to the unsafe
stack.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254353 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/Local.h
lib/Transforms/Instrumentation/SafeStack.cpp
lib/Transforms/Utils/Local.cpp
test/Transforms/SafeStack/byval.ll [new file with mode: 0644]
test/Transforms/SafeStack/debug-loc.ll