diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-04 08:42:34 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-04 08:42:34 +0000 |
commit | 21fb3bd80309b30ed2223e793003ac4744776dfb (patch) | |
tree | c608ff2e150b9ed5687b9225321d7c31235f7641 /lib/Core/TimingSolver.cpp | |
parent | f870aa1e0723e9203df495020ee2bf2bc47a6246 (diff) | |
download | klee-21fb3bd80309b30ed2223e793003ac4744776dfb.tar.gz |
Change Solver::getValue to make explicit that result is a ConstantExpr.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72860 91177308-0d34-0410-b5e6-96231b3b80d8
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; } |