retention of superseded AST elements to prevent pointer mis-aliasing

This commit is contained in:
Vern Paxson 2023-11-05 16:28:13 -08:00 committed by Arne Welzel
parent 280acc51bf
commit 4ec9a23ce6
9 changed files with 103 additions and 23 deletions

View file

@ -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;