fix bogus warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21361 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-04-19 15:32:30 +00:00
parent 20b463629b
commit 6e19b5b792

View File

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