[llvm] r372136 - Move DK_Misexpect for compatability with getNextAvailablePluginDiagnosticKind
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 17 09:27:36 PDT 2019
Author: phosek
Date: Tue Sep 17 09:27:36 2019
New Revision: 372136
URL: http://llvm.org/viewvc/llvm-project?rev=372136&view=rev
Log:
Move DK_Misexpect for compatability with getNextAvailablePluginDiagnosticKind
First identified after D66324 landed.
Patch By: paulkirth
Differential Revision: https://reviews.llvm.org/D67648
Modified:
llvm/trunk/include/llvm/IR/DiagnosticInfo.h
Modified: llvm/trunk/include/llvm/IR/DiagnosticInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DiagnosticInfo.h?rev=372136&r1=372135&r2=372136&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DiagnosticInfo.h (original)
+++ llvm/trunk/include/llvm/IR/DiagnosticInfo.h Tue Sep 17 09:27:36 2019
@@ -74,9 +74,10 @@ enum DiagnosticKind {
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.
More information about the llvm-commits
mailing list