... or otherwise we get an ICE.
Details
Diff Detail
Event Timeline
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
1631 | The check is target specific, I prefer to keep it in a function that's already target specific anyway. |
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
1632 | I've already fixed the line length here. |
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
1631 | My thoughts here are that the check is both sanitizer specific and platform specific. However it's going to be always sanitizers specific, but in theory we may get more platforms supporting "mte". Also right now err_stack_tagging_requires_hardware_feature is very platform specific. '-fsanitize=memtag' requires hardware support (+memtag) |
clang/lib/Driver/SanitizerArgs.cpp | ||
---|---|---|
1042 ↗ | (On Diff #214185) | I'm a bit worried that this check can be satisfied by, say, a source file or a relative include path of "+mte". |
clang/lib/Driver/SanitizerArgs.cpp | ||
---|---|---|
1042 ↗ | (On Diff #214185) | Fair enough, I've updated the patch. |
Please move back Driver closer to the first use