[PATCH] D67648: Move DK_Misexpect for compatability with getNextAvailablePluginDiagnosticKind

Paul Kirth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 16 21:46:13 PDT 2019


paulkirth created this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D67648

Files:
  llvm/include/llvm/IR/DiagnosticInfo.h


Index: llvm/include/llvm/IR/DiagnosticInfo.h
===================================================================
--- llvm/include/llvm/IR/DiagnosticInfo.h
+++ llvm/include/llvm/IR/DiagnosticInfo.h
@@ -74,9 +74,10 @@
   DK_LastMachineRemark = DK_MachineOptimizationRemarkAnalysis,
   DK_MIRParser,
   DK_PGOProfile,
+  DK_MisExpect,
   DK_Unsupported,
-  DK_FirstPluginKind,
-  DK_MisExpect
+  DK_FirstPluginKind // Must be last value to work with
+                     // getNextAvailablePluginDiagnosticKind
 };
 
 /// Get the next available kind ID for a plugin diagnostic.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67648.220431.patch
Type: text/x-patch
Size: 576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190917/1a132312/attachment.bin>


More information about the llvm-commits mailing list