Fix name of warn_ignored_hip_only_option
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Tue, 22 Oct 2019 20:15:04 +0000 (16:15 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Tue, 22 Oct 2019 20:36:28 +0000 (16:36 -0400)
Differential Revision: https://reviews.llvm.org/D69268

clang/include/clang/Basic/DiagnosticCommonKinds.td
clang/lib/Frontend/CompilerInvocation.cpp

index 4091195..6018c14 100644 (file)
@@ -305,7 +305,7 @@ def err_openclcxx_not_supported : Error<
   "'%0' is not supported in C++ for OpenCL">;
 
 // HIP
-def warn_ignore_hip_only_option : Warning<
+def warn_ignored_hip_only_option : Warning<
   "'%0' is ignored since it is only supported for HIP">,
   InGroup<HIPOnly>;
 
index 767a071..f6e6f71 100644 (file)
@@ -2532,7 +2532,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
     if (Opts.HIP)
       Opts.GPUAllowDeviceInit = 1;
     else
-      Diags.Report(diag::warn_ignore_hip_only_option)
+      Diags.Report(diag::warn_ignored_hip_only_option)
           << Args.getLastArg(OPT_fgpu_allow_device_init)->getAsString(Args);
   }
   Opts.HIPUseNewLaunchAPI = Args.hasArg(OPT_fhip_new_launch_api);