aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/ConstantRange.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-15 01:58:56 +0000
committerChris Lattner <sabre@nondot.org>2007-01-15 01:58:56 +0000
commitb2f3e703bcde5833ff5910922f7a5313cc6b1c64 (patch)
treef91e80ddcdc4a5cbf989adde8d67e616c7aaea08 /lib/Support/ConstantRange.cpp
parent8f79df3cf9c91cb61aedd46b56dcdcd6d56b9d2d (diff)
downloadexternal_llvm-b2f3e703bcde5833ff5910922f7a5313cc6b1c64.zip
external_llvm-b2f3e703bcde5833ff5910922f7a5313cc6b1c64.tar.gz
external_llvm-b2f3e703bcde5833ff5910922f7a5313cc6b1c64.tar.bz2
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/ConstantRange.cpp b/lib/Support/ConstantRange.cpp
index 378ae76..a1b5247 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;