[Driver] Call hasFlag instead of hasArg
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 22 Apr 2022 23:48:38 +0000 (16:48 -0700)
committerAkira Hatanaka <ahatanaka@apple.com>
Sat, 23 Apr 2022 03:14:50 +0000 (20:14 -0700)
commit3b578ae9088caf08932dc7d18e87d2a17fb4f7a8
tree8bce8b023526e4a3d81e321a825913071d02e8ce
parent3a978b7b88b809be9138eb26002be02851cadae4
[Driver] Call hasFlag instead of hasArg

`_HAS_STATIC_RTTI` should be set to 0 only by `-fno-rtti` according to the
summary of https://reviews.llvm.org/D103771.

rdar://92039243

Differential Revision: https://reviews.llvm.org/D124312
clang/lib/Driver/ToolChains/MSVC.cpp
clang/test/Driver/msvc-static-rtti.cpp