Skip to content

const2ast: prove tests cover error filenames #5181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontends/ast/genrtlil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions frontends/ast/simplify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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();
Expand Down
Loading