summaryrefslogtreecommitdiffstats
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2013-08-07 12:39:00 +0000
committerAlexander Potapenko <glider@google.com>2013-08-07 12:39:00 +0000
commitce3241009768389fd3185e8b1ea1dd4623d0bc61 (patch)
treecd04f2a2ebfb5fcdecd3c2a84fcf9ce54d533baa /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parent45c54ad8dcb56e66183b5713716394a457125dd9 (diff)
downloadbcm5719-llvm-ce3241009768389fd3185e8b1ea1dd4623d0bc61.tar.gz
bcm5719-llvm-ce3241009768389fd3185e8b1ea1dd4623d0bc61.zip
[TSan] Let the users suppress use-after-free errors using the "race:" suppressions.
If there's a race between a memory access and a free() call in the client program, it can be reported as a use-after-free (if the access occurs after the free()) or an ordinary race (if free() occurs after the access). We've decided to use a single "race:" prefix for both cases instead of introducing a "use-after-free:" one, because in many cases this allows us to keep a single suppression for both the use-after-free and free-after-use. This may be misleading if the use-after-free occurs in a non-racy way (e.g. in a single-threaded program). But normally such bugs shall not be suppressed. llvm-svn: 187885
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud