Skip to content

Commit

Permalink
fix Win64 stack probe generation
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Sep 26, 2012
1 parent 51d8d23 commit 5ebc46e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/cod3.c
Expand Up @@ -2712,8 +2712,8 @@ code* prolog_frameadj(tym_t tyf, unsigned xlocalsize, bool enter, bool* pushallo
code_orflag(csub, CFtarg2);
gen2sib(csub, 0x85, modregrm(0,SP,4),modregrm(0,4,SP));
if (I64)
{ gen2(csub, 0xFF, (REX_W << 16) | modregrmx(3,0,R11)); // DEC R11
genc2(csub,JNE,0,(targ_uns)-14);
{ gen2(csub, 0xFF, modregrmx(3,1,R11)); // DEC R11D
genc2(csub,JNE,0,(targ_uns)-15);
}
else
{ gen1(csub, 0x48 + DX); // DEC EDX
Expand Down

0 comments on commit 5ebc46e

Please sign in to comment.