about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-10 06:26:39 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-10 06:26:39 +0000
commitd842c7b8d0c995bf9f0c08acaa4dd5465f1d7833 (patch)
tree5344e231de345147a2cf5993330eaa81adb2da1b
parent876a9e45740b09a8518bef438f1e895c9f416be3 (diff)
downloadklee-d842c7b8d0c995bf9f0c08acaa4dd5465f1d7833.tar.gz
(Missed save) Move Array construction out of MemoryObject into ObjectState.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73163 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Expr/Expr.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp
index ce914266..d1638bb8 100644
--- a/lib/Expr/Expr.cpp
+++ b/lib/Expr/Expr.cpp
@@ -356,10 +356,12 @@ ref<Expr>  NotOptimizedExpr::create(ref<Expr> src) {
 /***/
 
 Array::~Array() {
+  extern "C" void ::vc_DeleteExpr(void*);
+
   // FIXME: This shouldn't be necessary.
-  if (array->stpInitialArray) {
-    ::vc_DeleteExpr(array->stpInitialArray);
-    array->stpInitialArray = 0;
+  if (stpInitialArray) {
+    ::vc_DeleteExpr(stpInitialArray);
+    stpInitialArray = 0;
   }
 }