mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
ZAM fix for inlining bug when a local is assigned to a function parameter
This commit is contained in:
parent
8f92e0d39b
commit
cbc3d9c739
2 changed files with 7 additions and 6 deletions
10
src/Expr.h
10
src/Expr.h
|
@ -304,11 +304,11 @@ public:
|
|||
// True if this expression can be the RHS for a field assignment.
|
||||
bool IsFieldAssignable(const Expr* e) const;
|
||||
|
||||
// True if the expression will transform to one of another type
|
||||
// upon reduction, for non-constant operands. "Transform" means
|
||||
// something beyond assignment to a temporary. Necessary so that
|
||||
// we know to fully reduce such expressions if they're the RHS
|
||||
// of an assignment.
|
||||
// True if the expression will transform to one of another AST node
|
||||
// (perhaps of the same type) upon reduction, for non-constant
|
||||
// operands. "Transform" means something beyond assignment to a
|
||||
// temporary. Necessary so that we know to fully reduce such
|
||||
// expressions if they're the RHS of an assignment.
|
||||
virtual bool WillTransform(Reducer* c) const { return false; }
|
||||
|
||||
// The same, but for the expression when used in a conditional context.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue