diff options
Diffstat (limited to 'lib/Core/TimingSolver.cpp')
-rw-r--r-- | lib/Core/TimingSolver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Core/TimingSolver.cpp b/lib/Core/TimingSolver.cpp index b26551cc..339c33b2 100644 --- a/lib/Core/TimingSolver.cpp +++ b/lib/Core/TimingSolver.cpp @@ -94,10 +94,10 @@ bool TimingSolver::mayBeFalse(const ExecutionState& state, ref<Expr> expr, } bool TimingSolver::getValue(const ExecutionState& state, ref<Expr> expr, - ref<Expr> &result) { + ref<ConstantExpr> &result) { // Fast path, to avoid timer and OS overhead. - if (isa<ConstantExpr>(expr)) { - result = expr; + if (ConstantExpr *CE = dyn_cast<ConstantExpr>(expr)) { + result = CE; return true; } |