From 03979b02fb0296aefdfeb0c00e6eb4ea5ac01cc8 Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Wed, 25 Nov 2020 00:30:56 -0600 Subject: [PATCH] Allow printing of null node in let binder (#5523) --- src/printer/let_binding.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/printer/let_binding.cpp b/src/printer/let_binding.cpp index 439037b64..2efc98318 100644 --- a/src/printer/let_binding.cpp +++ b/src/printer/let_binding.cpp @@ -30,8 +30,7 @@ uint32_t LetBinding::getThreshold() const { return d_thresh; } void LetBinding::process(Node n) { - Assert(!n.isNull()); - if (d_thresh == 0) + if (n.isNull() || d_thresh == 0) { // value of 0 means do not introduce let return; @@ -42,7 +41,6 @@ void LetBinding::process(Node n) void LetBinding::letify(Node n, std::vector& letList) { - Assert(!n.isNull()); // first, push the context pushScope(); // process the node -- 2.30.2