From cb7363e391cb0bca1def8ecdd01f68051d337aa8 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Mon, 12 Mar 2018 00:23:37 +0000 Subject: [PATCH] [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 --- lib/Driver/SanitizerArgs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.50.1