ED_AddrExpr() and ED_IndExpr() need no return values.

This commit is contained in:
acqn 2024-01-01 15:03:45 +08:00
parent 4343eebe67
commit 4e820677ee
2 changed files with 4 additions and 6 deletions

View File

@ -418,7 +418,7 @@ ExprDesc* ED_FinalizeRValLoad (ExprDesc* Expr)
ExprDesc* ED_AddrExpr (ExprDesc* Expr)
void ED_AddrExpr (ExprDesc* Expr)
/* Take address of Expr. The result is always an rvalue */
{
switch (Expr->Flags & E_MASK_LOC) {
@ -447,12 +447,11 @@ ExprDesc* ED_AddrExpr (ExprDesc* Expr)
}
break;
}
return Expr;
}
ExprDesc* ED_IndExpr (ExprDesc* Expr)
void ED_IndExpr (ExprDesc* Expr)
/* Dereference Expr */
{
switch (Expr->Flags & E_MASK_LOC) {
@ -486,7 +485,6 @@ ExprDesc* ED_IndExpr (ExprDesc* Expr)
}
break;
}
return Expr;
}

View File

@ -637,10 +637,10 @@ INLINE void ED_MarkExprAsRVal (ExprDesc* Expr)
# define ED_MarkExprAsRVal(Expr) do { (Expr)->Flags &= ~E_RTYPE_LVAL; } while (0)
#endif
ExprDesc* ED_AddrExpr (ExprDesc* Expr);
void ED_AddrExpr (ExprDesc* Expr);
/* Take address of Expr */
ExprDesc* ED_IndExpr (ExprDesc* Expr);
void ED_IndExpr (ExprDesc* Expr);
/* Dereference Expr */
#if defined(HAVE_INLINE)