projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f64eca
)
[mips] Actually mark that the default case is unreachable as this switch
author
Chandler Carruth
<chandlerc@gmail.com>
Fri, 10 Oct 2014 21:07:03 +0000
(21:07 +0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Fri, 10 Oct 2014 21:07:03 +0000
(21:07 +0000)
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
llvm/lib/Target/Mips/MipsFastISel.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/Mips/MipsFastISel.cpp
b/llvm/lib/Target/Mips/MipsFastISel.cpp
index
a720ca9
..
c7ba4ad
100644
(file)
--- 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);