VM: FACTOR_ASSERT so that data_root never wraps a null pointer, cause if it does, random crashes can happen
parent
161eb0bb49
commit
2095fd57de
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue