summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'staptree.cxx')
-rw-r--r--staptree.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/staptree.cxx b/staptree.cxx
index 2b963bc3..9ffbaf09 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -2337,7 +2337,7 @@ update_visitor::visit_hist_op (hist_op* e)
}
template <> indexable*
-update_visitor::require <indexable*> (indexable* src)
+update_visitor::require <indexable*> (indexable* src, bool clearok)
{
indexable *dst = NULL;
if (src != NULL)
@@ -2351,7 +2351,7 @@ update_visitor::require <indexable*> (indexable* src)
dst = require (array_src);
else
dst = require (hist_src);
- assert (dst);
+ assert(clearok || dst);
}
return dst;
}