Skip to content

Commit

Permalink
another uninitialized field
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Dec 15, 2011
1 parent 9b67e7c commit 0528325
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/cod3.c
Expand Up @@ -4198,7 +4198,9 @@ void pinholeopt(code *c,block *b)
//printf("c = %p, op = %02x rm = %02x\n", c, op, rm);

/* If immediate second operand */
if ((ins & T || op == 0xF6 || op == 0xF7) &&
if ((ins & T ||
((op == 0xF6 || op == 0xF7) && (reg < modregrm(0,2,0) || reg > modregrm(0,3,0)))
) &&
c->IFL2 == FLconst)
{
int flags = c->Iflags & CFpsw; /* if want result in flags */
Expand Down

0 comments on commit 0528325

Please sign in to comment.