From 9a0be5bfd9b49837ab1ba86fdd9b2e121d8af5eb Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 10 Oct 2014 21:07:03 +0000 Subject: [PATCH] [mips] Actually mark that the default case is unreachable as this switch is over a subset of condition codes. This fixes the -Werror build which warns about use of uninitialized variables in the default case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219531 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MipsFastISel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/Mips/MipsFastISel.cpp b/lib/Target/Mips/MipsFastISel.cpp index a720ca9d7e6..c7ba4add3e5 100644 --- a/lib/Target/Mips/MipsFastISel.cpp +++ b/lib/Target/Mips/MipsFastISel.cpp @@ -673,7 +673,7 @@ bool MipsFastISel::SelectCmp(const Instruction *I) { CondMovOpc = Mips::MOVF_I; break; default: - break; + llvm_unreachable("Only switching of a subset of CCs."); } unsigned RegWithZero = createResultReg(&Mips::GPR32RegClass); unsigned RegWithOne = createResultReg(&Mips::GPR32RegClass); -- 2.34.1