[PATCH] D121302: [HIP] Fix -fno-gpu-sanitize

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 26 00:59:53 PDT 2022


MaskRay added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/HIPAMD.cpp:165
   // Diagnose unsupported sanitizer options only once.
+  if (!Args.hasFlag(options::OPT_fgpu_sanitize, options::OPT_fno_gpu_sanitize))
+    return;
----------------
Note: the third argument of hasFlag defaults to true before I removed it in 522712e2d241ea33575a9c7a60ad582634f04f0d. I suspect it might not be what you intended. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121302/new/

https://reviews.llvm.org/D121302



More information about the cfe-commits mailing list