[llvm-commits] CVS: llvm/lib/Support/ConstantRange.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 29 14:43:09 PST 2004
Changes in directory llvm/lib/Support:
ConstantRange.cpp updated: 1.9 -> 1.10
---
Log message:
Adjust to new itf
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Support/ConstantRange.cpp
diff -u llvm/lib/Support/ConstantRange.cpp:1.9 llvm/lib/Support/ConstantRange.cpp:1.10
--- llvm/lib/Support/ConstantRange.cpp:1.9 Mon Jan 12 14:13:04 2004
+++ llvm/lib/Support/ConstantRange.cpp Mon Mar 29 14:42:49 2004
@@ -62,8 +62,8 @@
/// 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!");
More information about the llvm-commits
mailing list