Skip to content

Commit 253ce6f

Browse files
committed
Fix printing bug in node-counter pass
1 parent 11ead7e commit 253ce6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ast/node_counter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Pass CreateCounterPass()
3434
auto max = ctx.b.ast_max_nodes_;
3535
if (bt_verbose)
3636
{
37-
LOG(INFO) << "node count: " << max;
37+
LOG(INFO) << "node count: " << node_count;
3838
}
3939
if (node_count >= max)
4040
{

0 commit comments

Comments
 (0)