diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-07-07 00:48:25 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-07-07 00:48:25 +0000 |
commit | 2a7a4bc1c9252ed8e3d9a782504c64e885a26bce (patch) | |
tree | 0c731abdd1357079689f1e0bf8ffaae9ee1ab292 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 760a261e1e79ca591e209a6b9bdff14c10243f5a (diff) | |
download | llvm-2a7a4bc1c9252ed8e3d9a782504c64e885a26bce.zip llvm-2a7a4bc1c9252ed8e3d9a782504c64e885a26bce.tar.gz llvm-2a7a4bc1c9252ed8e3d9a782504c64e885a26bce.tar.bz2 |
Copy arguments passed by value into explicit allocas for ASan.
ASan determines the stack layout from alloca instructions. Since
arguments marked as "byval" do not have an explicit alloca instruction, ASan
does not produce red zones for them. This commit produces an explicit alloca
instruction and copies the byval argument into the allocated memory so that red
zones are produced.
Patch by Matt Morehouse.
Differential revision: https://reviews.llvm.org/D34789
llvm-svn: 307342
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions