mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-23 20:22:09 +00:00
DiagnosticInfo: Allow unsupported be a warning
Some unsupported features can be ignored, so don't force this to be a hard error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0243f6a0db
commit
bfa4d786a1
@ -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…
x
Reference in New Issue
Block a user