mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
retention of superseded AST elements to prevent pointer mis-aliasing
This commit is contained in:
parent
280acc51bf
commit
4ec9a23ce6
9 changed files with 103 additions and 23 deletions
|
@ -7,6 +7,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include "zeek/Expr.h"
|
||||
#include "zeek/script_opt/ObjMgr.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
@ -166,6 +167,8 @@ private:
|
|||
// in only one or the other.
|
||||
std::unordered_map<const Stmt*, const Stmt*> successor2;
|
||||
|
||||
ObjMgr om;
|
||||
|
||||
StmtPtr body;
|
||||
std::shared_ptr<Reducer> rc;
|
||||
FuncTypePtr ft;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue