]> granicus.if.org Git - clang/commit
[Driver] Consider -fno-sanitize=... state when filtering out -fsanitize-coverage=...
authorPetr Hosek <phosek@chromium.org>
Fri, 21 Jul 2017 01:17:49 +0000 (01:17 +0000)
committerPetr Hosek <phosek@chromium.org>
Fri, 21 Jul 2017 01:17:49 +0000 (01:17 +0000)
commit36d969c2a922522b11a461fc36c12d6ed7a03d37
tree9d9de79043aebbef46a8b067b2ba46ed295fca51
parent3628e505caddb62d59981a2165a93bc556aab6fd
[Driver] Consider -fno-sanitize=... state when filtering out -fsanitize-coverage=...

The driver ignores -fsanitize-coverage=... flags when also given
-fsanitize=... flags for sanitizer flavors that don't support the
coverage runtime. This logic failed to account for subsequent
-fno-sanitize=... flags that disable the sanitizer flavors that
conflict with -fsanitize-coverage=... flags.

Patch by Roland McGrath

Differential Revision: https://reviews.llvm.org/D35603

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308707 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/SanitizerArgs.cpp
test/Driver/fsanitize-coverage.c