[clang][driver] Enable MisExpect diagnostics flag outside of CC1
authorPaul Kirth <paulkirth@google.com>
Tue, 25 Apr 2023 21:13:51 +0000 (21:13 +0000)
committerPaul Kirth <paulkirth@google.com>
Thu, 27 Apr 2023 21:19:46 +0000 (21:19 +0000)
commit61976af3ba9347935e9715067fcc0f5a568e6e7d
treeae84e1334cf1dd0bf6e31a9deeab6f1595e884b7
parent012ea747ed0275c499f69c82ac0f635f4c76f746
[clang][driver] Enable MisExpect diagnostics flag outside of CC1

Previously we only accepted the `-fdiagnostics-misexpect-tolerance=` at
CC1, when it should have been handled identically to
`-fdiagnostics-hotness-threshold=`. It should not have been required to
pass this flag w/ `-Xclang` as reported here:
https://reviews.llvm.org/D115907#inline-1440745

Reviewed By: hans, phosek

Differential Revision: https://reviews.llvm.org/D149206
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/clang_f_opts.c