When a sanitizer incompatible with one of the default sanitizers
is explicitly enabled, automatically disable all the conflicting
default sanitizers.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang/lib/Driver/SanitizerArgs.cpp | ||
---|---|---|
369 ↗ | (On Diff #136893) | Is this change needed to avoid errors at "Kinds & NeedsLTO" and KindsToDiagnose? |
clang/lib/Driver/SanitizerArgs.cpp | ||
---|---|---|
369 ↗ | (On Diff #136893) | 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. |