When a sanitizer incompatible with one of the default sanitizers
is explicitly enabled, automatically disable all the conflicting
default sanitizers.
Details
Diff Detail
- Repository
- rC Clang
Event Timeline
clang/lib/Driver/SanitizerArgs.cpp | ||
---|---|---|
369 | Is this change needed to avoid errors at "Kinds & NeedsLTO" and KindsToDiagnose? |
clang/lib/Driver/SanitizerArgs.cpp | ||
---|---|---|
369 | It is needed for D44065, if we enable some sanitizers like SafeStack by default, user would get an error when they enable some incompatible sanitizer like ASan and would require them passing -fno-sanitizer=safe-stack to avoid that error which is non-intuitive. Instead, with this change the incompatible default sanitizers are disabled automatically. |
Is this change needed to avoid errors at "Kinds & NeedsLTO" and KindsToDiagnose?
Could you create a test for this change?