fix to TNode assertion (which is too strict, given lax ordering requirements on stati...
authorMorgan Deters <mdeters@gmail.com>
Sat, 1 Dec 2012 17:12:18 +0000 (17:12 +0000)
committerMorgan Deters <mdeters@gmail.com>
Sat, 1 Dec 2012 17:12:18 +0000 (17:12 +0000)
src/expr/node.h

index a3b8853a092ad7efda686cce3c55cbbad7434d78..42e9f42535ce8e278760dcbad263f3e60afa8823 100644 (file)
@@ -1022,7 +1022,8 @@ NodeTemplate<ref_count>::NodeTemplate(const expr::NodeValue* ev) :
   if(ref_count) {
     d_nv->inc();
   } else {
-    Assert(d_nv->d_rc > 0, "TNode constructed from NodeValue with rc == 0");
+    Assert(d_nv->d_rc > 0 || d_nv == &expr::NodeValue::s_null,
+           "TNode constructed from NodeValue with rc == 0");
   }
 }