{
struct si_llvm_diagnostics *diag = (struct si_llvm_diagnostics *)context;
LLVMDiagnosticSeverity severity = LLVMGetDiagInfoSeverity(di);
- char *description = LLVMGetDiagInfoDescription(di);
const char *severity_str = NULL;
switch (severity) {
severity_str = "warning";
break;
case LLVMDSRemark:
- severity_str = "remark";
- break;
case LLVMDSNote:
- severity_str = "note";
- break;
default:
- severity_str = "unknown";
+ return;
}
+ char *description = LLVMGetDiagInfoDescription(di);
+
pipe_debug_message(diag->debug, SHADER_INFO,
"LLVM diagnostic (%s): %s", severity_str, description);