Skip to content

Commit 0516870

Browse files
authored
[SYCL][RTC] Fix warning caused by default case (#16243)
Fix warning resulting from default case covering other cases, causing post-commit to fail. --------- Signed-off-by: Lukas Sommer <[email protected]>
1 parent c6ce623 commit 0516870

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

sycl-jit/jit-compiler/lib/rtc/DeviceCompilation.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,11 @@ class LLVMDiagnosticWrapper : public llvm::DiagnosticHandler {
202202
auto Prefix = [](DiagnosticSeverity Severity) -> llvm::StringLiteral {
203203
switch (Severity) {
204204
case llvm::DiagnosticSeverity::DS_Error:
205-
return "ERROR";
205+
return "ERROR:";
206206
case llvm::DiagnosticSeverity::DS_Warning:
207-
return "WARNING";
208-
case llvm::DiagnosticSeverity::DS_Note:
209-
return "NOTE:";
210-
case llvm::DiagnosticSeverity::DS_Remark:
211-
return "REMARK:";
207+
return "WARNING:";
212208
default:
213-
llvm_unreachable("Unhandled case");
209+
return "NOTE:";
214210
}
215211
}(DI.getSeverity());
216212
LogPrinter << Prefix;

0 commit comments

Comments
 (0)