Skip to content

Commit

Permalink
stop false positive about sreg being uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jul 29, 2011
1 parent 560222f commit 1ac3886
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/cod2.c
Expand Up @@ -2093,7 +2093,9 @@ code *cdshift(elem *e,regm_t *pretregs)
sreg = findreglsw(retregs);
}
else
resreg = findreg(retregs);
{ resreg = findreg(retregs);
sreg = ~0; // an invalid value
}
if (config.target_cpu >= TARGET_80286 &&
sz <= REGSIZE)
{
Expand Down

0 comments on commit 1ac3886

Please sign in to comment.