mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
Fix a bug in an assert that would never trigger.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33005 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bb7a624352
commit
ca7ad8942a
@ -355,7 +355,7 @@ ConstantRange ConstantRange::zeroExtend(const Type *Ty) const {
|
||||
/// truncated to the specified type.
|
||||
ConstantRange ConstantRange::truncate(const Type *Ty) const {
|
||||
unsigned SrcTySize = getLower()->getType()->getPrimitiveSizeInBits();
|
||||
assert(SrcTySize > Ty->getPrimitiveSize() && "Not a value truncation");
|
||||
assert(SrcTySize > Ty->getPrimitiveSizeInBits() && "Not a value truncation");
|
||||
uint64_t Size = 1ULL << Ty->getPrimitiveSizeInBits();
|
||||
if (isFullSet() || getSetSize() >= Size)
|
||||
return ConstantRange(getType());
|
||||
|
@ -355,7 +355,7 @@ ConstantRange ConstantRange::zeroExtend(const Type *Ty) const {
|
||||
/// truncated to the specified type.
|
||||
ConstantRange ConstantRange::truncate(const Type *Ty) const {
|
||||
unsigned SrcTySize = getLower()->getType()->getPrimitiveSizeInBits();
|
||||
assert(SrcTySize > Ty->getPrimitiveSize() && "Not a value truncation");
|
||||
assert(SrcTySize > Ty->getPrimitiveSizeInBits() && "Not a value truncation");
|
||||
uint64_t Size = 1ULL << Ty->getPrimitiveSizeInBits();
|
||||
if (isFullSet() || getSetSize() >= Size)
|
||||
return ConstantRange(getType());
|
||||
|
Loading…
x
Reference in New Issue
Block a user