diff options
author | Chris Lattner <sabre@nondot.org> | 2003-01-30 17:10:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-01-30 17:10:41 +0000 |
commit | 8c73b0f7f6c4116e8a98383558c6de6c74ec1397 (patch) | |
tree | 12442560b542f277307475811c7fa9db716295e4 /lib/Transforms/ExprTypeConvert.cpp | |
parent | dc3366749d7f4265bed4de060ff73d453a239dc9 (diff) |
Fix levelraise/2003-01-30-ShiftCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5435 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/ExprTypeConvert.cpp')
-rw-r--r-- | lib/Transforms/ExprTypeConvert.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index dee0c2026e..92a88773a0 100644 --- a/lib/Transforms/ExprTypeConvert.cpp +++ b/lib/Transforms/ExprTypeConvert.cpp @@ -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); |