diff options
author | Sergey Matveev <earthdok@google.com> | 2013-05-27 11:17:01 +0000 |
---|---|---|
committer | Sergey Matveev <earthdok@google.com> | 2013-05-27 11:17:01 +0000 |
commit | 050309fdc6d8416b217f651141d5f391512b1041 (patch) | |
tree | feb5081da44817bce6ccf9925271f05b58a91ec2 /include/clang/Basic/Sanitizers.def | |
parent | b28e88c18ade461f54d0f2faefb1cacb209586e2 (diff) |
Add -fsanitize=leak to driver options.
If -fsanitize=leak is specified, link the program with the
LeakSanitizer runtime. Ignore this option when -fsanitize=address is specified,
because AddressSanitizer has this functionality built in.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182729 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Sanitizers.def')
-rw-r--r-- | include/clang/Basic/Sanitizers.def | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/Sanitizers.def b/include/clang/Basic/Sanitizers.def index 709ec8d037..187388c634 100644 --- a/include/clang/Basic/Sanitizers.def +++ b/include/clang/Basic/Sanitizers.def @@ -54,6 +54,9 @@ SANITIZER("memory", Memory) // ThreadSanitizer SANITIZER("thread", Thread) +// LeakSanitizer +SANITIZER("leak", Leak) + // UndefinedBehaviorSanitizer SANITIZER("alignment", Alignment) SANITIZER("bool", Bool) |