diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-15 01:58:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-15 01:58:56 +0000 |
commit | b2f3e703bcde5833ff5910922f7a5313cc6b1c64 (patch) | |
tree | f91e80ddcdc4a5cbf989adde8d67e616c7aaea08 /lib/Support/ConstantRange.cpp | |
parent | 8f79df3cf9c91cb61aedd46b56dcdcd6d56b9d2d (diff) |
Update code to eliminate calls to isInteger, calling isIntegral instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33220 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/ConstantRange.cpp')
-rw-r--r-- | lib/Support/ConstantRange.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/ConstantRange.cpp b/lib/Support/ConstantRange.cpp index 378ae767ff..a1b5247595 100644 --- a/lib/Support/ConstantRange.cpp +++ b/lib/Support/ConstantRange.cpp @@ -225,7 +225,7 @@ bool ConstantRange::contains(ConstantInt *Val, bool isSigned) const { /// subtract - Subtract the specified constant from the endpoints of this /// constant range. ConstantRange ConstantRange::subtract(ConstantInt *CI) const { - assert(CI->getType() == getType() && getType()->isInteger() && + assert(CI->getType() == getType() && getType()->isIntegral() && "Cannot subtract from different type range or non-integer!"); // If the set is empty or full, don't modify the endpoints. if (Lower == Upper) return *this; |