Skip to content

Commit

Permalink
Don't take address of function without &
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed Mar 5, 2013
1 parent 10b1ecd commit fc89fa4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/optimize.c
Expand Up @@ -801,19 +801,19 @@ Expression *shift_optimize(int result, BinExp *e, Expression *(*shift)(Type *, E
Expression *ShlExp::optimize(int result, bool keepLvalue)
{
//printf("ShlExp::optimize(result = %d) %s\n", result, toChars());
return shift_optimize(result, this, Shl);
return shift_optimize(result, this, &Shl);
}

Expression *ShrExp::optimize(int result, bool keepLvalue)
{
//printf("ShrExp::optimize(result = %d) %s\n", result, toChars());
return shift_optimize(result, this, Shr);
return shift_optimize(result, this, &Shr);
}

Expression *UshrExp::optimize(int result, bool keepLvalue)
{
//printf("UshrExp::optimize(result = %d) %s\n", result, toChars());
return shift_optimize(result, this, Ushr);
return shift_optimize(result, this, &Ushr);
}

Expression *AndExp::optimize(int result, bool keepLvalue)
Expand Down

0 comments on commit fc89fa4

Please sign in to comment.