From 33135da8b228074aeff3ef97b115e2f94e0a9a53 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Mon, 16 Jun 2025 12:47:09 +0200 Subject: [PATCH] const2ast: prove tests cover error filenames --- frontends/ast/genrtlil.cc | 2 +- frontends/ast/simplify.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc index 26ed0e3e4..ecb4c0931 100644 --- a/frontends/ast/genrtlil.cc +++ b/frontends/ast/genrtlil.cc @@ -1342,7 +1342,7 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint) // be instantiated for this type of AST node. IdString type_name; - current_filename = filename; + // current_filename = filename; switch (type) { diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 05621d857..79e2c1eca 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1036,7 +1036,7 @@ bool AstNode::simplify(bool const_fold, int stage, int width_hint, bool sign_hin return false; } - current_filename = filename; + // current_filename = filename; // we do not look inside a task or function // (but as soon as a task or function is instantiated we process the generated AST as usual) @@ -1844,7 +1844,7 @@ bool AstNode::simplify(bool const_fold, int stage, int width_hint, bool sign_hin current_scope[it->first] = it->second; } - current_filename = filename; + // current_filename = filename; if (type == AST_MODULE || type == AST_INTERFACE) current_scope.clear();