[DiagnosticInfo] Fix the default DiagnosticSeverity (#120342)
After
https://github.com/llvm/llvm-project/commit/ea632e1b34e1
the API call to LLVMContext->emitError(I, Errorstr) default to warning
instead of error.
This cause problems as the API mentioned it is "prefixed with error:".