mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-14 07:31:39 +00:00
fix crash in my previous patch
llvm-svn: 86987
This commit is contained in:
parent
aa4a883855
commit
569944e45f
@ -618,7 +618,7 @@ ConstantRange::shl(const ConstantRange &Amount) const {
|
||||
APInt max = getUnsignedMax() << Amount.getUnsignedMax();
|
||||
|
||||
// there's no overflow!
|
||||
APInt Zeros(sizeof(unsigned)*8, getUnsignedMax().countLeadingZeros());
|
||||
APInt Zeros(getBitWidth(), getUnsignedMax().countLeadingZeros());
|
||||
if (Zeros.uge(Amount.getUnsignedMax()))
|
||||
return ConstantRange(min, max);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user