Skip to content

Commit

Permalink
remove false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jul 29, 2011
1 parent 40215f8 commit b3bd010
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backend/cod2.c
Expand Up @@ -1945,7 +1945,7 @@ code *cdloglog(elem *e,regm_t *pretregs)
code *cdshift(elem *e,regm_t *pretregs)
{ unsigned resreg,shiftcnt,byte;
unsigned s1,s2,oper;
tym_t tyml,uns;
tym_t tyml;
int sz;
regm_t retregs,rretregs;
code *cg,*cl,*cr;
Expand All @@ -1965,15 +1965,14 @@ code *cdshift(elem *e,regm_t *pretregs)
tyml = tybasic(e1->Ety);
sz = tysize[tyml];
assert(!tyfloating(tyml));
uns = tyuns(tyml);
oper = e->Eoper;
unsigned rex = (I64 && sz == 8) ? REX_W : 0;
unsigned grex = rex << 16;

#if SCPP
// Do this until the rest of the compiler does OPshr/OPashr correctly
if (oper == OPshr)
oper = (uns) ? OPshr : OPashr;
oper = (tyuns(tyml)) ? OPshr : OPashr;
#endif

switch (oper)
Expand Down

0 comments on commit b3bd010

Please sign in to comment.