summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2018-07-30 21:11:32 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2018-07-30 21:11:32 +0000
commit3a5d356bd09cce183b6e508d83f2f8b71cb95d1e (patch)
tree2296bef1b279499152a34d2970076f25919ce602
parent7361996f15b0e33318e54ce82fb9936cfbcbf51f (diff)
downloadbcm5719-llvm-3a5d356bd09cce183b6e508d83f2f8b71cb95d1e.tar.gz
bcm5719-llvm-3a5d356bd09cce183b6e508d83f2f8b71cb95d1e.zip
[docs] UndefinedBehaviorSanitizer.rst: {,un}signed-integer-overflow: tune docs
Yes, i erroneously assumed that the "after" was meant, but i was wrong: > I really meant "performed before", for cases like 4u / -2, > where -2 is implicitly converted to UINT_MAX - 2 before > the computation. Conversions that are performed after > a computation aren't part of the computation at all, > so I think it's much clearer that they're not in scope > for this sanitizer. llvm-svn: 338306
-rw-r--r--clang/docs/UndefinedBehaviorSanitizer.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/docs/UndefinedBehaviorSanitizer.rst b/clang/docs/UndefinedBehaviorSanitizer.rst
index 6cf53f56833..86d0193a23c 100644
--- a/clang/docs/UndefinedBehaviorSanitizer.rst
+++ b/clang/docs/UndefinedBehaviorSanitizer.rst
@@ -131,7 +131,7 @@ Available checks are:
result of a signed integer computation cannot be represented in its type.
This includes all the checks covered by ``-ftrapv``, as well as checks for
signed division overflow (``INT_MIN/-1``), but not checks for
- lossy implicit conversions performed after the computation
+ lossy implicit conversions performed before the computation
(see ``-fsanitize=implicit-conversion``). Both of these two issues are
handled by ``-fsanitize=implicit-conversion`` group of checks.
- ``-fsanitize=unreachable``: If control flow reaches an unreachable
@@ -140,7 +140,7 @@ Available checks are:
the result of an unsigned integer computation cannot be represented in its
type. Unlike signed integer overflow, this is not undefined behavior, but
it is often unintentional. This sanitizer does not check for lossy implicit
- conversions performed after such a computation
+ conversions performed before such a computation
(see ``-fsanitize=implicit-conversion``).
- ``-fsanitize=vla-bound``: A variable-length array whose bound
does not evaluate to a positive value.
OpenPOWER on IntegriCloud