1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

[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.

llvm-svn: 219531
This commit is contained in:
Chandler Carruth 2014-10-10 21:07:03 +00:00
parent 3fd5f752d3
commit 35cad92130

View File

@ -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);