low-level tidying

This commit is contained in:
Vern Paxson 2022-05-04 16:52:36 -07:00 committed by Tim Wojtulewicz
parent 415bbe17d6
commit 772169f8e0
3 changed files with 3 additions and 4 deletions

View file

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