mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
factor script optimization Expr AST nodes out of main AST header
This commit is contained in:
parent
01fd30dda9
commit
7c8c83efc4
12 changed files with 276 additions and 270 deletions
|
@ -481,7 +481,8 @@ string CPPCompile::GenAddToExpr(const Expr* e, GenType gt, bool top_level) {
|
|||
if ( t->Tag() == TYPE_VECTOR ) {
|
||||
auto& rt = rhs->GetType();
|
||||
|
||||
if ( e->AsAddToExpr()->IsVectorElemAppend() )
|
||||
ASSERT(e->Tag() == EXPR_ADD_TO);
|
||||
if ( static_cast<const AddToExpr*>(e)->IsVectorElemAppend() )
|
||||
add_to_func = "vector_append__CPP";
|
||||
else
|
||||
add_to_func = "vector_vec_append__CPP";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue