mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +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:
@@ -658,7 +658,7 @@ static bool OperandConvertableToType(User *U, Value *V, const Type *Ty,
|
|||||||
if (Ty->isSigned() != V->getType()->isSigned()) return false;
|
if (Ty->isSigned() != V->getType()->isSigned()) return false;
|
||||||
// FALL THROUGH
|
// FALL THROUGH
|
||||||
case Instruction::Shl:
|
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;
|
if (!Ty->isInteger()) return false;
|
||||||
return ValueConvertableToType(I, Ty, CTMap);
|
return ValueConvertableToType(I, Ty, CTMap);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user