[HIP] Fix -fno-gpu-sanitize
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Wed, 9 Mar 2022 16:52:48 +0000 (11:52 -0500)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Thu, 10 Mar 2022 01:58:50 +0000 (20:58 -0500)
commitda9a70313d60572c1e1e630ecf2dad7a0fa5d7ff
tree8d8c3279bea3642fc3bf17fe54a8c0f85ef95551
parent6730b44480fcce18bfbbae0c46719250e9eae425
[HIP] Fix -fno-gpu-sanitize

Fix a typo about -fno-gpu-sanitize handling and disable warnings when
-fno-gpu-sanitize is specified.

Reviewed by: Artem Belevich

Differential Revision: https://reviews.llvm.org/D121302
clang/lib/Driver/ToolChains/HIPAMD.cpp
clang/test/Driver/hip-sanitize-options.hip