Skip to content

Commit

Permalink
astutils.cpp: always inline isMutableExpression()
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jul 30, 2024
1 parent 3edeccb commit e1945a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/astutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2437,7 +2437,11 @@ static bool isArray(const Token* tok)
return false;
}

static bool isMutableExpression(const Token* tok)
static inline
#if defined(__GNUC__)
__attribute__((always_inline))
#endif
bool isMutableExpression(const Token* tok)
{
if (!tok)
return false;
Expand Down

0 comments on commit e1945a6

Please sign in to comment.