From 9f6fbcd3c9ac2ce44c1f0226b2bf6e58d81398af Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 8 Nov 2017 12:45:35 +0100 Subject: [PATCH] Simplify call of gimple_call_internal_p. 2017-11-08 Martin Liska * gimplify.c (expand_FALLTHROUGH_r): Simplify usage of gimple_call_internal_p. From-SVN: r254524 --- gcc/ChangeLog | 5 +++++ gcc/gimplify.c | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ed9a1306370..6ba019ca7fe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-11-08 Martin Liska + + * gimplify.c (expand_FALLTHROUGH_r): Simplify usage + of gimple_call_internal_p. + 2017-11-07 Tom de Vries * config/mips/mips.h (ASM_OUTPUT_LABELREF): Wrap in "do {} while (0)". diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 9563d825a6a..e9168785fc0 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -2223,8 +2223,7 @@ expand_FALLTHROUGH_r (gimple_stmt_iterator *gsi_p, bool *handled_ops_p, while (!gsi_end_p (gsi2)) { stmt = gsi_stmt (gsi2); - enum gimple_code gc = gimple_code (stmt); - if (gc == GIMPLE_LABEL) + if (gimple_code (stmt) == GIMPLE_LABEL) { tree label = gimple_label_label (as_a (stmt)); if (gimple_has_location (stmt) && DECL_ARTIFICIAL (label)) @@ -2233,8 +2232,7 @@ expand_FALLTHROUGH_r (gimple_stmt_iterator *gsi_p, bool *handled_ops_p, break; } } - else if (gc == GIMPLE_CALL - && gimple_call_internal_p (stmt, IFN_ASAN_MARK)) + else if (gimple_call_internal_p (stmt, IFN_ASAN_MARK)) ; else /* Something other is not expected. */ -- 2.30.2