mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
fix a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35152 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
12779797f7
commit
d435dbcbf9
@ -4526,7 +4526,7 @@ isOperandValidForConstraint(SDOperand Op, char Constraint, SelectionDAG &DAG) {
|
||||
case 'I':
|
||||
if (isa<ConstantSDNode>(Op)) {
|
||||
unsigned Value = cast<ConstantSDNode>(Op)->getValue();
|
||||
if (Value >= 0 && Value <= 31)
|
||||
if (Value <= 31)
|
||||
return Op;
|
||||
else
|
||||
return SDOperand(0,0);
|
||||
|
Loading…
Reference in New Issue
Block a user