mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Fix levelraise/2003-01-30-ShiftCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5435 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dc3366749d
commit
8c73b0f7f6
@ -658,7 +658,7 @@ static bool OperandConvertableToType(User *U, Value *V, const Type *Ty,
|
||||
if (Ty->isSigned() != V->getType()->isSigned()) return false;
|
||||
// FALL THROUGH
|
||||
case Instruction::Shl:
|
||||
assert(I->getOperand(0) == V);
|
||||
if (I->getOperand(1) == V) return false; // Cannot change shift amount type
|
||||
if (!Ty->isInteger()) return false;
|
||||
return ValueConvertableToType(I, Ty, CTMap);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user