diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-08 05:34:39 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-08 05:34:39 +0000 |
| commit | 23414c00331d334689932fce2e67bd378d299e27 (patch) | |
| tree | 4f79df65c2cc30af2419afd5d78ff0d024dd6006 /llvm/lib | |
| parent | 52b15458d4139269310c6c3a97e821a67b1b91e2 (diff) | |
| download | bcm5719-llvm-23414c00331d334689932fce2e67bd378d299e27.tar.gz bcm5719-llvm-23414c00331d334689932fce2e67bd378d299e27.zip | |
Fix a bug in an assert that would never trigger.
llvm-svn: 33005
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/ConstantRange.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ConstantRange.cpp b/llvm/lib/Analysis/ConstantRange.cpp index 33a67022593..a8ffa5813e7 100644 --- a/llvm/lib/Analysis/ConstantRange.cpp +++ b/llvm/lib/Analysis/ConstantRange.cpp @@ -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()); |

