mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
fixes & enhancements to location information associated w/ AST nodes & ZAM optimization
This commit is contained in:
parent
7a283afe00
commit
e5bb63c662
14 changed files with 299 additions and 259 deletions
|
@ -87,7 +87,7 @@ bool UseDefs::RemoveUnused(int iter) {
|
|||
// with one that only includes the actually
|
||||
// used identifiers.
|
||||
|
||||
auto new_init = make_intrusive<InitStmt>(used_ids);
|
||||
auto new_init = with_location_of(make_intrusive<InitStmt>(used_ids), s);
|
||||
rc->AddStmtToReplace(s, std::move(new_init));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue