From 21fb3bd80309b30ed2223e793003ac4744776dfb Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 4 Jun 2009 08:42:34 +0000 Subject: 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 --- lib/Core/AddressSpace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Core/AddressSpace.cpp') 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 cex(0); + ref 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 cex(0); + ref cex; if (!solver->getValue(state, p, cex)) return true; unsigned example = (unsigned) cex->getConstantValue(); -- cgit 1.4.1