Skip to content

Commit

Permalink
fix Issue 8986 - The PVS-Studio analyzer has something for you
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Nov 9, 2012
1 parent 3bdf17e commit b72f726
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/backend/cgxmm.c
Expand Up @@ -822,8 +822,8 @@ code *cdvector(elem *e, regm_t *pretregs)
{
c = cat(c, codelem(params[i], pretregs, FALSE));
*pretregs = 0; // in case they got set
return c;
}
return c;
}

assert(n >= 2 && n <= 4);
Expand Down
2 changes: 1 addition & 1 deletion src/backend/cod2.c
Expand Up @@ -1858,7 +1858,7 @@ code *cdcond(elem *e,regm_t *pretregs)
if (!retregs)
retregs = ALLREGS;
c2 = codelem(e22,&retregs,FALSE);
c2 = cat(c1, fixresult(e22,retregs,pretregs));
c2 = cat(c2, fixresult(e22,retregs,pretregs));
}
else
c2 = codelem(e22,&retregs,FALSE); /* use same regs as E1 */
Expand Down
2 changes: 1 addition & 1 deletion src/interpret.c
Expand Up @@ -1708,7 +1708,7 @@ Expression *getVarExp(Loc loc, InterState *istate, Declaration *d, CtfeGoal goal
e = e->interpret(istate, goal);
}
else
error(loc, "cannot interpret symbol %s at compile time", v->toChars());
error(loc, "cannot interpret symbol %s at compile time", s->toChars());
}
else
error(loc, "cannot interpret declaration %s at compile time", d->toChars());
Expand Down

0 comments on commit b72f726

Please sign in to comment.