3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-20 19:32:05 +00:00

const2ast: prove tests cover error filenames

This commit is contained in:
Emil J. Tywoniak 2025-06-16 12:47:09 +02:00
parent 67f8de54dc
commit 33135da8b2
2 changed files with 3 additions and 3 deletions

View file

@ -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();