mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-18 01:35:44 +00:00
Fix a bug in my previous patch. Do not get the shift amount type (which
is always ubyte, get the type being shifted). This unbreaks espresso llvm-svn: 22224
This commit is contained in:
parent
4cff3f786f
commit
b99bf21182
@ -2614,7 +2614,7 @@ Instruction *InstCombiner::visitSetCondInst(SetCondInst &I) {
|
||||
// Check that the shift amount is in range. If not, don't perform
|
||||
// undefined shifts. When the shift is visited it will be
|
||||
// simplified.
|
||||
unsigned TypeBits = ShAmt->getType()->getPrimitiveSizeInBits();
|
||||
unsigned TypeBits = CI->getType()->getPrimitiveSizeInBits();
|
||||
if (ShAmt->getValue() >= TypeBits)
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user