diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-14 04:44:37 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-14 04:44:37 +0000 |
commit | 8249d4273b2fcac5bace9160feece5ef2ce8773a (patch) | |
tree | b54f442d9ed85f8d47f8eb3b7e7d5919e5e7771a /gcc/ipa-inline-analysis.c | |
parent | 6a0f17543d9790a15f234d359dd05c2b58a4e65a (diff) | |
download | gcc-8249d4273b2fcac5bace9160feece5ef2ce8773a.tar.gz |
* ipa-inline-analysis.c (add_clause): Avoid shifting integer
NUM_CONDITIONS bit positions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201719 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-inline-analysis.c')
-rw-r--r-- | gcc/ipa-inline-analysis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index 2f30797443a..806b219c228 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -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 = |