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/AddressSpace.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/AddressSpace.cpp')
| -rw-r--r-- | lib/Core/AddressSpace.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Core/AddressSpace.cpp b/lib/Core/AddressSpace.cpp index a4a65bd9..5b73a6f6 100644 --- a/lib/Core/AddressSpace.cpp +++ b/lib/Core/AddressSpace.cpp @@ -80,7 +80,7 @@ bool AddressSpace::resolveOne(ExecutionState &state, // try cheap search, will succeed for any inbounds pointer - ref<Expr> cex(0); + ref<ConstantExpr> cex; if (!solver->getValue(state, address, cex)) return false; unsigned example = (unsigned) cex->getConstantValue(); @@ -187,7 +187,7 @@ bool AddressSpace::resolve(ExecutionState &state, // to hit the fast path with exactly 2 queries). we could also // just get this by inspection of the expr. - ref<Expr> cex(0); + ref<ConstantExpr> cex; if (!solver->getValue(state, p, cex)) return true; unsigned example = (unsigned) cex->getConstantValue(); |
