[Clang] Fix use of `hasArg` when `hasFlag` should be used instead
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 11 Oct 2022 16:42:40 +0000 (11:42 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 11 Oct 2022 18:40:41 +0000 (13:40 -0500)
commit4b76a80459e69daca2f62f522a6117a9350613dc
treed8ab4623a53ff63b78bc3cdbc95f7571b503b57c
parent55d043cc06497533264eb0aa210f4d8b39eef378
[Clang] Fix use of `hasArg` when `hasFlag` should be used instead

Summary:
This option forwards a clang flag with a `-no` variant to the Clang
compiler. It should use the `hasFlag` so it works properly when the
option is overridden.
clang/lib/Driver/ToolChains/Clang.cpp