aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/ConstantRange.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-29 20:42:49 +0000
committerChris Lattner <sabre@nondot.org>2004-03-29 20:42:49 +0000
commitdb813954527c7bcd33916261fa5bc7e4525efe49 (patch)
treedd25834e6d5f840b0db71625c8c7c997394c2736 /lib/Support/ConstantRange.cpp
parent62fe9b59c1b50883b027393a183ac468d4371781 (diff)
downloadexternal_llvm-db813954527c7bcd33916261fa5bc7e4525efe49.zip
external_llvm-db813954527c7bcd33916261fa5bc7e4525efe49.tar.gz
external_llvm-db813954527c7bcd33916261fa5bc7e4525efe49.tar.bz2
Adjust to new itf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/ConstantRange.cpp')
-rw-r--r--lib/Support/ConstantRange.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/ConstantRange.cpp b/lib/Support/ConstantRange.cpp
index 0067e21..d07e4af 100644
--- a/lib/Support/ConstantRange.cpp
+++ b/lib/Support/ConstantRange.cpp
@@ -62,8 +62,8 @@ ConstantRange::ConstantRange(const Type *Ty, bool Full) {
/// Lower==Upper and Lower != Min or Max for its type (or if the two constants
/// have different types)
///
-ConstantRange::ConstantRange(ConstantIntegral *L,
- ConstantIntegral *U) : Lower(L), Upper(U) {
+ConstantRange::ConstantRange(Constant *L, Constant *U)
+ : Lower(cast<ConstantIntegral>(L)), Upper(cast<ConstantIntegral>(U)) {
assert(Lower->getType() == Upper->getType() &&
"Incompatible types for ConstantRange!");