mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
low-level tidying
This commit is contained in:
parent
415bbe17d6
commit
772169f8e0
3 changed files with 3 additions and 4 deletions
|
@ -124,11 +124,11 @@ bool UseDefs::RemoveUnused(int iter)
|
|||
// Because we're dealing with reduced statements, the
|
||||
// assignment expression should be to a simple variable.
|
||||
if ( r->Tag() != EXPR_REF )
|
||||
reporter->InternalError("lhs ref inconsistency in UseDefs::FindUnused");
|
||||
reporter->InternalError("lhs ref inconsistency in UseDefs::RemoveUnused");
|
||||
|
||||
auto n = r->AsRefExprPtr()->GetOp1();
|
||||
if ( n->Tag() != EXPR_NAME )
|
||||
reporter->InternalError("lhs name inconsistency in UseDefs::FindUnused");
|
||||
reporter->InternalError("lhs name inconsistency in UseDefs::RemoveUnused");
|
||||
|
||||
auto id = n->AsNameExpr()->Id();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue