fixes & enhancements to location information associated w/ AST nodes & ZAM optimization

This commit is contained in:
Vern Paxson 2024-01-25 13:11:56 -08:00 committed by Arne Welzel
parent 7a283afe00
commit e5bb63c662
14 changed files with 299 additions and 259 deletions

View file

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