]> granicus.if.org Git - clang/commit
[Driver] Conform warn_drv_object_size_disabled_O0 to DefaultWarnNoError
authorVedant Kumar <vsk@apple.com>
Thu, 12 Jul 2018 19:53:15 +0000 (19:53 +0000)
committerVedant Kumar <vsk@apple.com>
Thu, 12 Jul 2018 19:53:15 +0000 (19:53 +0000)
commit6e54f66e13baad6b3d3753c25492439ab1d06f08
treeb39e9a7fcbbe25d81d4413b9e8b1fde7ab128573
parent1a48fc4684eba5a26f1bd0b4c7077bbd3253e1df
[Driver] Conform warn_drv_object_size_disabled_O0 to DefaultWarnNoError

This diagnostic triggers when -fsanitize=object-size is explicitly
specified but will be a no-op (i.e, at -O0).

This diagnostic should not fail a -Werror build because it's just an
explanatory note to the user. It's not always actionable.

For example, a user may not be able to simply disable object-size,
because they want it enabled in optimized builds.

rdar://42128447

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336937 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticDriverKinds.td
test/Driver/fsanitize-object-size.c