diff options
Diffstat (limited to 'lib/Solver/Solver.cpp')
-rw-r--r-- | lib/Solver/Solver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Solver/Solver.cpp b/lib/Solver/Solver.cpp index 7a1b356c..9e8e37bf 100644 --- a/lib/Solver/Solver.cpp +++ b/lib/Solver/Solver.cpp @@ -57,7 +57,7 @@ bool Solver::evaluate(const Query& query, Validity &result) { // Maintain invariants implementations expect. if (ConstantExpr *CE = dyn_cast<ConstantExpr>(query.expr)) { - result = CE->getConstantValue() ? True : False; + result = CE->isTrue() ? True : False; return true; } @@ -83,7 +83,7 @@ bool Solver::mustBeTrue(const Query& query, bool &result) { // Maintain invariants implementations expect. if (ConstantExpr *CE = dyn_cast<ConstantExpr>(query.expr)) { - result = CE->getConstantValue() ? true : false; + result = CE->isTrue() ? true : false; return true; } |