mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
better isolation of ZAM instruction elements
hooks for tracking extended ZAM profiling location
This commit is contained in:
parent
dc376953fa
commit
9f9f01580f
6 changed files with 134 additions and 90 deletions
|
@ -577,7 +577,7 @@ void ZAMCompiler::ReMapFrame() {
|
|||
|
||||
if ( new_slot < 0 ) {
|
||||
ODesc d;
|
||||
inst->stmt->GetLocationInfo()->Describe(&d);
|
||||
inst->loc->Loc()->Describe(&d);
|
||||
reporter->Error("%s: value used but not set: %s", d.Description(),
|
||||
frame_denizens[slot]->Name());
|
||||
}
|
||||
|
@ -748,7 +748,7 @@ void ZAMCompiler::CheckSlotUse(int slot, const ZInstI* inst) {
|
|||
|
||||
if ( denizen_beginning.count(slot) == 0 ) {
|
||||
ODesc d;
|
||||
inst->stmt->GetLocationInfo()->Describe(&d);
|
||||
inst->loc->Loc()->Describe(&d);
|
||||
reporter->Error("%s: value used but not set: %s", d.Description(), frame_denizens[slot]->Name());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue