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:
Chris Lattner
2003-01-30 17:10:41 +00:00
parent dc3366749d
commit 8c73b0f7f6

View File

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