Commit 2a2869d6 by Cary Coutant Committed by Cary Coutant

* tree-cfg.c (assign_discriminator): Add explicit parentheses.

From-SVN: r150068
parent b524249c
2009-07-24 Cary Coutant <ccoutant@google.com> 2009-07-24 Cary Coutant <ccoutant@google.com>
* tree-cfg.c (assign_discriminator): Add explicit parentheses.
2009-07-24 Cary Coutant <ccoutant@google.com>
* cfghooks.c (split_block): Copy discriminator to new block. * cfghooks.c (split_block): Copy discriminator to new block.
* tree-cfg.c (assign_discriminator): Check location of last * tree-cfg.c (assign_discriminator): Check location of last
instruction in block as well as first. instruction in block as well as first.
......
...@@ -763,8 +763,8 @@ assign_discriminator (location_t locus, basic_block bb) ...@@ -763,8 +763,8 @@ assign_discriminator (location_t locus, basic_block bb)
first_in_to_bb = first_non_label_stmt (bb); first_in_to_bb = first_non_label_stmt (bb);
last_in_to_bb = last_stmt (bb); last_in_to_bb = last_stmt (bb);
if (first_in_to_bb && same_line_p (locus, gimple_location (first_in_to_bb)) if ((first_in_to_bb && same_line_p (locus, gimple_location (first_in_to_bb)))
|| last_in_to_bb && same_line_p (locus, gimple_location (last_in_to_bb))) || (last_in_to_bb && same_line_p (locus, gimple_location (last_in_to_bb))))
bb->discriminator = next_discriminator_for_locus (locus); bb->discriminator = next_discriminator_for_locus (locus);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment