diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 56e8b76def50..2825fba16ef0 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -971,9 +971,9 @@ def fgpu_inline_threshold_EQ : Joined<["-"], "fgpu-inline-threshold=">, def gpu_instrument_lib_EQ : Joined<["--"], "gpu-instrument-lib=">, HelpText<"Instrument device library for HIP, which is a LLVM bitcode containing " "__cyg_profile_func_enter and __cyg_profile_func_exit">; -defm gpu_sanitize : BoolFOption<"gpu-sanitize", EmptyKPM, DefaultFalse, - PosFlag, - NegFlag>; +def fgpu_sanitize : Flag<["-"], "fgpu-sanitize">, Group, + HelpText<"Enable sanitizer for AMDGPU target">; +def fno_gpu_sanitize : Flag<["-"], "fno-gpu-sanitize">, Group; def cuid_EQ : Joined<["-"], "cuid=">, Flags<[CC1Option]>, HelpText<"An ID for compilation unit, which should be the same for the same " "compilation unit but different for different compilation units. " diff --git a/llvm/include/llvm/Option/OptParser.td b/llvm/include/llvm/Option/OptParser.td index 45f092af7166..ad0c1eb7406a 100644 --- a/llvm/include/llvm/Option/OptParser.td +++ b/llvm/include/llvm/Option/OptParser.td @@ -152,8 +152,6 @@ class KeyPathAndMacro; - class ImpliedByAnyOf key_paths, code value = "true"> { code ImpliedCheck = !foldl("false", key_paths, accumulator, key_path, !strconcat(accumulator, " || ", key_path));