support for Frame's having call locations even if no associated CallExpr

This commit is contained in:
Vern Paxson 2021-05-30 17:43:17 -07:00
parent 143d306883
commit 6a0bee1108
2 changed files with 4 additions and 1 deletions

View file

@ -262,6 +262,8 @@ public:
void SetCall(const CallExpr* arg_call) { call = arg_call; }
void ClearCall() { call = nullptr; }
const CallExpr* GetCall() const { return call; }
void SetCallLoc(const Location* loc) { call_loc = loc; }
const detail::Location* GetCallLocation() const;
void SetDelayed() { delayed = true; }
@ -390,6 +392,7 @@ private:
trigger::TriggerPtr trigger;
const CallExpr* call;
const Location* call_loc = nullptr; // only needed if call is nil
std::unique_ptr<std::vector<ScriptFunc*>> functions_with_closure_frame_reference;
};