about summary refs log tree commit diff homepage
path: root/lib/Core/ExecutionState.cpp
diff options
context:
space:
mode:
authorMartinNowack <martin.nowack@gmail.com>2016-07-09 00:37:31 +0200
committerGitHub <noreply@github.com>2016-07-09 00:37:31 +0200
commite87e5bd478d8dad5a7c164197b9e39da3873442d (patch)
tree871185f3c85fcdf3f626cb39db642534308c5a6f /lib/Core/ExecutionState.cpp
parentf4363713c97769f392b7d85c4782f6e1aeb1a137 (diff)
parent05a0962a50fede85aae254667d5dac1586744eb3 (diff)
downloadklee-e87e5bd478d8dad5a7c164197b9e39da3873442d.tar.gz
Merge pull request #363 from MartinNowack/feat_determ_allocator
Add support for deterministic allocation
Diffstat (limited to 'lib/Core/ExecutionState.cpp')
-rw-r--r--lib/Core/ExecutionState.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Core/ExecutionState.cpp b/lib/Core/ExecutionState.cpp
index 6aeaa833..30d20266 100644
--- a/lib/Core/ExecutionState.cpp
+++ b/lib/Core/ExecutionState.cpp
@@ -370,8 +370,8 @@ void ExecutionState::dumpStack(llvm::raw_ostream &out) const {
 
       out << ai->getName().str();
       // XXX should go through function
-      ref<Expr> value = sf.locals[sf.kf->getArgRegister(index++)].value; 
-      if (isa<ConstantExpr>(value))
+      ref<Expr> value = sf.locals[sf.kf->getArgRegister(index++)].value;
+      if (value.get() && isa<ConstantExpr>(value))
         out << "=" << value;
     }
     out << ")";