mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
consolidate information associated with function bodies
This commit is contained in:
parent
f92acb3a4c
commit
3b37eb4b3a
5 changed files with 19 additions and 20 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue