From: Jeff Law Date: Tue, 2 Oct 2018 14:10:16 +0000 (-0600) Subject: * gimple-fold.c (get_range_strlen): Remove dead code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=911ce7b502a243aa400d07b57975f02252db281e;p=gcc.git * gimple-fold.c (get_range_strlen): Remove dead code. From-SVN: r264788 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 40f87aaeae5..59a01f86436 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-10-02 Jeff Law + + * gimple-fold.c (get_range_strlen): Remove dead code. + 2018-10-02 Martin Sebor Jeff Law diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index cf04c92180b..fa1fc60876c 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -1345,14 +1345,7 @@ get_range_strlen (tree arg, tree length[2], bitmap *visited, int type, /* If we potentially had a non-terminated string, then bubble that information up to the caller. */ if (!val) - { - *nonstr = data.decl; - /* If TYPE is asking for a maximum, then use any - length (including the length of an unterminated - string) for VAL. */ - if (type == 2) - val = data.len; - } + *nonstr = data.decl; } if (!val && fuzzy)