From: Petr Hosek Date: Tue, 17 Sep 2019 16:27:36 +0000 (+0000) Subject: Move DK_Misexpect for compatability with getNextAvailablePluginDiagnosticKind X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ce325b60cd1f072d2bc94e060476da1f98012f7;p=llvm Move DK_Misexpect for compatability with getNextAvailablePluginDiagnosticKind First identified after D66324 landed. Patch By: paulkirth Differential Revision: https://reviews.llvm.org/D67648 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372136 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/DiagnosticInfo.h b/include/llvm/IR/DiagnosticInfo.h index 4cabadb0e45..ec469982d37 100644 --- a/include/llvm/IR/DiagnosticInfo.h +++ b/include/llvm/IR/DiagnosticInfo.h @@ -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.