projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20b4636
)
fix bogus warning
author
Chris Lattner
<sabre@nondot.org>
Tue, 19 Apr 2005 15:32:30 +0000
(15:32 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 19 Apr 2005 15:32:30 +0000
(15:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21361
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/Record.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/Record.cpp
b/utils/TableGen/Record.cpp
index 41dbdd6140ac2b38b08b12b215b66478b86cf048..9c2d381de6b0b69f84bc7490cebdeac2594bfa0d 100644
(file)
--- a/
utils/TableGen/Record.cpp
+++ b/
utils/TableGen/Record.cpp
@@
-303,6
+303,7
@@
Init *IntInit::getBinaryOp(BinaryOp Op, Init *RHS) {
int NewValue;
switch (Op) {
+ default: assert(0 && "Unknown binop");
case SHL: NewValue = Value << RHSi->getValue(); break;
case SRA: NewValue = Value >> RHSi->getValue(); break;
case SRL: NewValue = (unsigned)Value >> (unsigned)RHSi->getValue(); break;