[PATCH] D21216: DiagnosticInfo: Allow unsupported be a warning

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 9 19:18:11 PDT 2016


arsenm created this revision.
arsenm added a reviewer: qcolombet.
arsenm added a subscriber: llvm-commits.

Some unsupported features can be ignored, so don't force this to be a hard error.

http://reviews.llvm.org/D21216

Files:
  include/llvm/IR/DiagnosticInfo.h

Index: include/llvm/IR/DiagnosticInfo.h
===================================================================
--- include/llvm/IR/DiagnosticInfo.h
+++ include/llvm/IR/DiagnosticInfo.h
@@ -632,8 +632,9 @@
   /// 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) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21216.60303.patch
Type: text/x-patch
Size: 788 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160610/4f5c8bea/attachment.bin>


More information about the llvm-commits mailing list