Fix param without default log line
authorZachary Snow <zach@zachjs.com>
Sun, 7 Mar 2021 21:06:25 +0000 (16:06 -0500)
committerZachary Snow <zach@zachjs.com>
Sun, 7 Mar 2021 21:06:25 +0000 (16:06 -0500)
frontends/ast/ast.cc

index af5e326adbe556fabac45477708228693413c237..0cfde0fc3ed7e8502cadd4be43cbaa2cce239420 100644 (file)
@@ -1248,7 +1248,7 @@ void AST::process(RTLIL::Design *design, AstNode *ast, bool dump_ast1, bool dump
                                for (const AstNode *node : (*it)->children)
                                        if (node->type == AST_PARAMETER && param_has_no_default(node))
                                        {
-                                               log("Deferring `%s' because it contains parameter(s) without defaults.\n", ast->str.c_str());
+                                               log("Deferring `%s' because it contains parameter(s) without defaults.\n", (*it)->str.c_str());
                                                defer_local = true;
                                                break;
                                        }