[local-bounds] Ignore volatile operations
authorVitaly Buka <vitalybuka@google.com>
Wed, 22 Apr 2020 02:22:00 +0000 (19:22 -0700)
committerVitaly Buka <vitalybuka@google.com>
Wed, 6 May 2020 06:08:08 +0000 (23:08 -0700)
commit04bd2c37caf48e79589dbccc486c6ad2541bec7a
treeeeb0292cb07e10a2e13407442b9594055615571f
parentd9c529c2a8b55871c0858bffedaeadf6d00a39ac
[local-bounds] Ignore volatile operations

Summary:
-fsanitize=local-bounds is very similar to ``object-size`` and
should also ignore volatile pointers.
https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#volatile

Reviewers: chandlerc, rsmith

Reviewed By: rsmith

Subscribers: cfe-commits, hiraditya, llvm-commits

Tags: #llvm, #clang

Differential Revision: https://reviews.llvm.org/D78607
clang/docs/UndefinedBehaviorSanitizer.rst
llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
llvm/test/Instrumentation/BoundsChecking/simple.ll