summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/IR/DiagnosticInfo.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/IR/DiagnosticInfo.h b/llvm/include/llvm/IR/DiagnosticInfo.h
index 9e5bb2b8a3a..59dfff90632 100644
--- a/llvm/include/llvm/IR/DiagnosticInfo.h
+++ b/llvm/include/llvm/IR/DiagnosticInfo.h
@@ -632,8 +632,9 @@ public:
/// copy this message, so this reference must be valid for the whole life time
/// of the diagnostic.
DiagnosticInfoUnsupported(const Function &Fn, const Twine &Msg,
- DebugLoc DLoc = DebugLoc())
- : DiagnosticInfoWithDebugLocBase(DK_Unsupported, DS_Error, Fn, DLoc),
+ DebugLoc DLoc = DebugLoc(),
+ DiagnosticSeverity Severity = DS_Error)
+ : DiagnosticInfoWithDebugLocBase(DK_Unsupported, Severity, Fn, DLoc),
Msg(Msg) {}
static bool classof(const DiagnosticInfo *DI) {
OpenPOWER on IntegriCloud