diff options
Diffstat (limited to 'lib/Expr/Expr.cpp')
-rw-r--r-- | lib/Expr/Expr.cpp | 8 |
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; } } |