From: Petr Hosek Date: Mon, 12 Mar 2018 00:23:37 +0000 (+0000) Subject: [Driver] Update the comment about incompatible sanitizers X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb7363e391cb0bca1def8ecdd01f68051d337aa8;p=clang [Driver] Update the comment about incompatible sanitizers Differential Revision: https://reviews.llvm.org/D44371 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@327249 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/SanitizerArgs.cpp b/lib/Driver/SanitizerArgs.cpp index 0f00f67858..91dad40152 100644 --- a/lib/Driver/SanitizerArgs.cpp +++ b/lib/Driver/SanitizerArgs.cpp @@ -348,7 +348,8 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC, // Enable toolchain specific default sanitizers if not explicitly disabled. SanitizerMask Default = TC.getDefaultSanitizers() & ~AllRemove; - // Disable default sanitizers that are incompatible with the default ones. + // Disable default sanitizers that are incompatible with explicitly requested + // ones. for (auto G : IncompatibleGroups) { SanitizerMask Group = G.first; if ((Default & Group) && (Kinds & G.second))