Skip to content

Commit 1c98ff4

Browse files
committed
Fix name of warn_ignored_hip_only_option
Differential Revision: https://reviews.llvm.org/D69268
1 parent 70316d3 commit 1c98ff4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Basic/DiagnosticCommonKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def err_openclcxx_not_supported : Error<
305305
"'%0' is not supported in C++ for OpenCL">;
306306

307307
// HIP
308-
def warn_ignore_hip_only_option : Warning<
308+
def warn_ignored_hip_only_option : Warning<
309309
"'%0' is ignored since it is only supported for HIP">,
310310
InGroup<HIPOnly>;
311311

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2532,7 +2532,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
25322532
if (Opts.HIP)
25332533
Opts.GPUAllowDeviceInit = 1;
25342534
else
2535-
Diags.Report(diag::warn_ignore_hip_only_option)
2535+
Diags.Report(diag::warn_ignored_hip_only_option)
25362536
<< Args.getLastArg(OPT_fgpu_allow_device_init)->getAsString(Args);
25372537
}
25382538
Opts.HIPUseNewLaunchAPI = Args.hasArg(OPT_fhip_new_launch_api);

0 commit comments

Comments
 (0)