mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
greater ZAM optimization of inlined function calls
This commit is contained in:
parent
e3b75ac391
commit
b489cfc508
13 changed files with 130 additions and 95 deletions
|
@ -361,7 +361,7 @@ void do_print_stmt(const std::vector<ValPtr>& vals) {
|
|||
}
|
||||
|
||||
ExprStmt::ExprStmt(ExprPtr arg_e) : Stmt(STMT_EXPR), e(std::move(arg_e)) {
|
||||
if ( e && e->Tag() != EXPR_CALL && e->IsPure() && e->GetType()->Tag() != TYPE_ERROR )
|
||||
if ( e && e->Tag() != EXPR_CALL && e->Tag() != EXPR_INLINE && e->IsPure() && e->GetType()->Tag() != TYPE_ERROR )
|
||||
Warn("expression value ignored");
|
||||
|
||||
SetLocationInfo(e->GetLocationInfo());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue