aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-02-23 02:53:19 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-02-23 02:53:19 +0000
commita0a628f839cf50844cc0f226bd9cb72485f98f91 (patch)
tree321e7ec506b6d97ff2d46889c5dbe7eb3ed4f505 /lib/Driver
parent1c8278b4bc83fafd29eead80ff4e5814fce7fd9b (diff)
ubsan: Emit bounds checks for array indexing, vector indexing, and (in really simple cases) pointer arithmetic. This augments the existing bounds checking with language-level array bounds information.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver')
-rw-r--r--lib/Driver/SanitizerArgs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/SanitizerArgs.h b/lib/Driver/SanitizerArgs.h
index 8e3f9461f3..c3d84f9a4f 100644
--- a/lib/Driver/SanitizerArgs.h
+++ b/lib/Driver/SanitizerArgs.h
@@ -37,7 +37,7 @@ class SanitizerArgs {
NeedsAsanRt = Address,
NeedsTsanRt = Thread,
NeedsMsanRt = Memory,
- NeedsUbsanRt = (Undefined & ~Bounds) | Integer,
+ NeedsUbsanRt = Undefined | Integer,
NotAllowedWithTrap = Vptr
};
unsigned Kind;