VM: FACTOR_ASSERT so that data_root never wraps a null pointer, cause if it does, random crashes can happen

db4
Björn Lindqvist 2014-11-18 01:56:43 +01:00 committed by John Benediktsson
parent 161eb0bb49
commit 2095fd57de
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ template <typename Type> struct data_root : public tagged<Type> {
data_root(Type* value, factor_vm* parent)
: tagged<Type>(value), parent(parent) {
FACTOR_ASSERT(value);
push();
}