From 7ce325b60cd1f072d2bc94e060476da1f98012f7 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Tue, 17 Sep 2019 16:27:36 +0000 Subject: [PATCH] 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 --- include/llvm/IR/DiagnosticInfo.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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. -- 2.40.0