[clang] 1c98ff4 - Fix name of warn_ignored_hip_only_option

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 22 13:36:46 PDT 2019


Author: Yaxun (Sam) Liu
Date: 2019-10-22T16:36:28-04:00
New Revision: 1c98ff49a30b88a2601b92e8702ff2058c4fc226

URL: https://github.com/llvm/llvm-project/commit/1c98ff49a30b88a2601b92e8702ff2058c4fc226
DIFF: https://github.com/llvm/llvm-project/commit/1c98ff49a30b88a2601b92e8702ff2058c4fc226.diff

LOG: Fix name of warn_ignored_hip_only_option

Differential Revision: https://reviews.llvm.org/D69268

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/DiagnosticCommonKinds.td b/clang/include/clang/Basic/DiagnosticCommonKinds.td
index 40911957d6fe..6018c1417789 100644
--- a/clang/include/clang/Basic/DiagnosticCommonKinds.td
+++ b/clang/include/clang/Basic/DiagnosticCommonKinds.td
@@ -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>;
 

diff  --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 767a0718b24c..f6e6f71b2805 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -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);


        


More information about the cfe-commits mailing list