diff options
author | Stepan Dyatkovskiy <stpworld@narod.ru> | 2012-03-13 12:51:42 +0000 |
---|---|---|
committer | Stepan Dyatkovskiy <stpworld@narod.ru> | 2012-03-13 12:51:42 +0000 |
commit | 906be24b79ec5b97d8fb4e8017659af480bd8d04 (patch) | |
tree | 01809ed3b0589b41772f042bc199bce395f13f90 | |
parent | e3aaf467d0ce6309fcaed86f6e49ed2920e9e0c5 (diff) | |
download | klee-906be24b79ec5b97d8fb4e8017659af480bd8d04.tar.gz |
Compatability fix for previous revision. By my mistake one string went out of #if scobes.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@152625 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Core/Executor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index d4009dd2..462db18b 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -1519,10 +1519,11 @@ void Executor::executeInstruction(ExecutionState &state, KInstruction *ki) { #if LLVM_VERSION_CODE >= LLVM_VERSION(3, 1) for (SwitchInst::CaseIt i = si->case_begin(), e = si->case_end(); i != e; ++i) { + ref<Expr> value = evalConstant(i.getCaseValue()); #else for (unsigned i=1, cases = si->getNumCases(); i<cases; ++i) { + ref<Expr> value = evalConstant(si->getCaseValue(i)); #endif - ref<Expr> value = evalConstant(i.getCaseValue()); ref<Expr> match = EqExpr::create(cond, value); isDefault = AndExpr::create(isDefault, Expr::createIsZero(match)); bool result; |