Adjust to new itf

llvm-svn: 12534
This commit is contained in:
Chris Lattner 2004-03-29 20:42:49 +00:00
parent 8582975b62
commit 5152b9ed34
1 changed files with 2 additions and 2 deletions

View File

@ -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!");