Skip to content

Commit

Permalink
Merge pull request #4120 from yebblies/gagshadow
Browse files Browse the repository at this point in the history
[DDMD] Fix shadowing
  • Loading branch information
WalterBright committed Nov 9, 2014
2 parents 45a2feb + b4c0ce3 commit de2545c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/statement.c
Expand Up @@ -3793,9 +3793,9 @@ Statement *ReturnStatement::semantic(Scope *sc)
{
/* May return by ref
*/
unsigned errors = global.startGagging();
unsigned olderrors = global.startGagging();
exp->checkEscapeRef();
if (global.endGagging(errors))
if (global.endGagging(olderrors))
tf->isref = false; // return by value
}
else
Expand Down

0 comments on commit de2545c

Please sign in to comment.