fix for tracking identifiers and aggregates when compiling to standalone-C++

This commit is contained in:
Vern Paxson 2025-09-15 13:57:35 -07:00
parent b25a844210
commit 18d435ac12
3 changed files with 6 additions and 10 deletions

View file

@ -196,6 +196,8 @@ TraversalCode ProfileFunc::PreExpr(const Expr* e) {
auto n = e->AsNameExpr();
auto id = n->IdPtr();
TrackID(id);
// Turns out that NameExpr's can be constructed using a
// different Type* than that of the identifier itself,
// so be sure we track the latter too.