projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc33667
)
Fix levelraise/2003-01-30-ShiftCrash.ll
author
Chris Lattner
<sabre@nondot.org>
Thu, 30 Jan 2003 17:10:41 +0000
(17:10 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 30 Jan 2003 17:10:41 +0000
(17:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5435
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/ExprTypeConvert.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/ExprTypeConvert.cpp
b/lib/Transforms/ExprTypeConvert.cpp
index dee0c2026e863791361e9c9af2f8ce659dde42be..92a88773a05ce733e58681bc08879a5462984903 100644
(file)
--- 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);