File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1210,7 +1210,7 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
1210
1210
} else {
1211
1211
// No colon found, do not use the input
1212
1212
C.getDriver ().Diag (diag::err_drv_unsupported_option_argument)
1213
- << SYCLAddTargets->getOption (). getName () << Val;
1213
+ << SYCLAddTargets->getSpelling () << Val;
1214
1214
}
1215
1215
}
1216
1216
} else
@@ -2294,7 +2294,7 @@ void Driver::PrintSYCLToolHelp(const Compilation &C) const {
2294
2294
" opencl-aot" , " --help" , " " ));
2295
2295
if (HelpArgs.empty ()) {
2296
2296
C.getDriver ().Diag (diag::err_drv_unsupported_option_argument)
2297
- << A->getOption (). getName () << AV;
2297
+ << A->getSpelling () << AV;
2298
2298
return ;
2299
2299
}
2300
2300
}
@@ -5167,7 +5167,7 @@ class OffloadingActionBuilder final {
5167
5167
// Driver::CreateOffloadingDeviceToolChains() to minimize code
5168
5168
// duplication.
5169
5169
C.getDriver ().Diag (diag::err_drv_unsupported_option_argument)
5170
- << A->getOption (). getName () << Val;
5170
+ << A->getSpelling () << Val;
5171
5171
}
5172
5172
devicelib_link_info[Val] = true && !NoDeviceLibs;
5173
5173
}
You can’t perform that action at this time.
0 commit comments