r305568 - [ubsan] docs: Add a note about pointers to volatile

Vedant Kumar via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 16 11:38:44 PDT 2017


Author: vedantk
Date: Fri Jun 16 13:38:43 2017
New Revision: 305568

URL: http://llvm.org/viewvc/llvm-project?rev=305568&view=rev
Log:
[ubsan] docs: Add a note about pointers to volatile

Modified:
    cfe/trunk/docs/UndefinedBehaviorSanitizer.rst

Modified: cfe/trunk/docs/UndefinedBehaviorSanitizer.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/UndefinedBehaviorSanitizer.rst?rev=305568&r1=305567&r2=305568&view=diff
==============================================================================
--- cfe/trunk/docs/UndefinedBehaviorSanitizer.rst (original)
+++ cfe/trunk/docs/UndefinedBehaviorSanitizer.rst Fri Jun 16 13:38:43 2017
@@ -148,6 +148,12 @@ You can also use the following check gro
      nullability does not have undefined behavior, it is often unintentional,
      so UBSan offers to catch it.
 
+Volatile
+--------
+
+The ``null``, ``alignment``, ``object-size``, and ``vptr`` checks do not apply
+to pointers to types with the ``volatile`` qualifier.
+
 Stack traces and report symbolization
 =====================================
 If you want UBSan to print symbolized stack trace for each error report, you




More information about the cfe-commits mailing list