ipa-inline-analysis.c (add_clause): Avoid shifting integer NUM_CONDITIONS bit positions.

* ipa-inline-analysis.c (add_clause): Avoid shifting integer
NUM_CONDITIONS bit positions.

From-SVN: r201719
This commit is contained in:
Marek Polacek 2013-08-14 04:44:37 +00:00 committed by Marek Polacek
parent d753b1363d
commit 61c1a609ee
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-08-14 Marek Polacek <polacek@redhat.com>
* ipa-inline-analysis.c (add_clause): Avoid shifting integer
NUM_CONDITIONS bit positions.
2013-08-13 Cary Coutant <ccoutant@google.com>
* dwarf2out.c (CHECKSUM_BLOCK): New macro.

View File

@ -337,7 +337,7 @@ add_clause (conditions conditions, struct predicate *p, clause_t clause)
and thus there is no point for looking for them. */
if (cc1->code == CHANGED || cc1->code == IS_NOT_CONSTANT)
continue;
for (c2 = c1 + 1; c2 <= NUM_CONDITIONS; c2++)
for (c2 = c1 + 1; c2 < NUM_CONDITIONS; c2++)
if (clause & (1 << c2))
{
condition *cc1 =