Commit 9f6fbcd3 by Martin Liska Committed by Martin Liska

Simplify call of gimple_call_internal_p.

2017-11-08  Martin Liska  <mliska@suse.cz>

	* gimplify.c (expand_FALLTHROUGH_r): Simplify usage
	of gimple_call_internal_p.

From-SVN: r254524
parent 106db840
2017-11-08 Martin Liska <mliska@suse.cz>
* gimplify.c (expand_FALLTHROUGH_r): Simplify usage
of gimple_call_internal_p.
2017-11-07 Tom de Vries <tom@codesourcery.com> 2017-11-07 Tom de Vries <tom@codesourcery.com>
* config/mips/mips.h (ASM_OUTPUT_LABELREF): Wrap in "do {} while (0)". * config/mips/mips.h (ASM_OUTPUT_LABELREF): Wrap in "do {} while (0)".
...@@ -2223,8 +2223,7 @@ expand_FALLTHROUGH_r (gimple_stmt_iterator *gsi_p, bool *handled_ops_p, ...@@ -2223,8 +2223,7 @@ expand_FALLTHROUGH_r (gimple_stmt_iterator *gsi_p, bool *handled_ops_p,
while (!gsi_end_p (gsi2)) while (!gsi_end_p (gsi2))
{ {
stmt = gsi_stmt (gsi2); stmt = gsi_stmt (gsi2);
enum gimple_code gc = gimple_code (stmt); if (gimple_code (stmt) == GIMPLE_LABEL)
if (gc == GIMPLE_LABEL)
{ {
tree label = gimple_label_label (as_a <glabel *> (stmt)); tree label = gimple_label_label (as_a <glabel *> (stmt));
if (gimple_has_location (stmt) && DECL_ARTIFICIAL (label)) if (gimple_has_location (stmt) && DECL_ARTIFICIAL (label))
...@@ -2233,8 +2232,7 @@ expand_FALLTHROUGH_r (gimple_stmt_iterator *gsi_p, bool *handled_ops_p, ...@@ -2233,8 +2232,7 @@ expand_FALLTHROUGH_r (gimple_stmt_iterator *gsi_p, bool *handled_ops_p,
break; break;
} }
} }
else if (gc == GIMPLE_CALL else if (gimple_call_internal_p (stmt, IFN_ASAN_MARK))
&& gimple_call_internal_p (stmt, IFN_ASAN_MARK))
; ;
else else
/* Something other is not expected. */ /* Something other is not expected. */
......
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