diff options
author | Kostya Serebryany <kcc@google.com> | 2013-09-23 09:52:37 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-09-23 09:52:37 +0000 |
commit | bedc6168047e51741d0fa6751c9ae5299707a2e8 (patch) | |
tree | 155c552f59febddc0765cd1b601eb4b2a6b5ada6 /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
parent | c4aab49c8407db29ac7005d84b4efdf061725d18 (diff) | |
download | bcm5719-llvm-bedc6168047e51741d0fa6751c9ae5299707a2e8.tar.gz bcm5719-llvm-bedc6168047e51741d0fa6751c9ae5299707a2e8.zip |
Enable -fsanitize=use-after-return by default under -fsanitize=address
Summary:
We enable ASAN's use-after-return instrumentation at compile-time,
but still keep it disabled at run-time.
This enables the users to flip the flag at run-time using environment variable
ASAN_OPTIONS=detect_stack_use_after_return=1 instead of using a separate build.
If UAR detection is disabled at run-time, this extra compile-time instrumentation
costs very small slowdown. On SPEC 2006 14 tests are not affected at all,
4 tests get ~ 1% slowdown and 453.povray gets 4%.
Reviewers: samsonov
Reviewed By: samsonov
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1741
llvm-svn: 191186
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions