consolidate information associated with function bodies

This commit is contained in:
Vern Paxson 2025-09-12 18:15:42 -07:00
parent f92acb3a4c
commit 3b37eb4b3a
5 changed files with 19 additions and 20 deletions

View file

@ -224,10 +224,10 @@ p_hash_type CPPCompile::BodyHash(const Stmt* body) {
ASSERT(bn != body_names.end());
auto& body_name = bn->second;
auto bh = body_hashes.find(body_name);
ASSERT(bh != body_hashes.end());
auto bi = body_info.find(body_name);
ASSERT(bi != body_info.end());
return bh->second;
return bi->second.hash;
}
string CPPCompile::GenArgs(const RecordTypePtr& params, const Expr* e) {