aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/Expr/Constraints.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Expr/Constraints.cpp')
-rw-r--r--lib/Expr/Constraints.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Expr/Constraints.cpp b/lib/Expr/Constraints.cpp
index 5869a852..8f89f88a 100644
--- a/lib/Expr/Constraints.cpp
+++ b/lib/Expr/Constraints.cpp
@@ -122,7 +122,8 @@ void ConstraintManager::addConstraintInternal(ref<Expr> e) {
switch (e->getKind()) {
case Expr::Constant:
- assert(e->getConstantValue() && "attempt to add invalid (false) constraint");
+ assert(cast<ConstantExpr>(e)->getConstantValue() &&
+ "attempt to add invalid (false) constraint");
break;
// split to enable finer grained independence and other optimizations