diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2014-10-10 21:07:03 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2014-10-10 21:07:03 +0000 |
| commit | 38811ccb97cb4fd5a4b9a9e830dcff7c79066acf (patch) | |
| tree | 640cb506d99426dd3eddb9b42c2a9c602ad901cc /llvm/lib | |
| parent | 1f64ecab79df18baf3d049a1417a4ebb56688462 (diff) | |
| download | bcm5719-llvm-38811ccb97cb4fd5a4b9a9e830dcff7c79066acf.tar.gz bcm5719-llvm-38811ccb97cb4fd5a4b9a9e830dcff7c79066acf.zip | |
[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
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsFastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsFastISel.cpp b/llvm/lib/Target/Mips/MipsFastISel.cpp index a720ca9d7e6..c7ba4add3e5 100644 --- a/llvm/lib/Target/Mips/MipsFastISel.cpp +++ b/llvm/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); |

