mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 17:32:36 +00:00
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:
parent
20b463629b
commit
6e19b5b792
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user