forked from OSchip/llvm-project
DiagnosticInfo: Allow unsupported be a warning
Some unsupported features can be ignored, so don't force this to be a hard error. llvm-svn: 273061
This commit is contained in:
parent
e32264a4c0
commit
eef67d531e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue