]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gimple-fold.c (get_range_strlen): Remove dead code.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Oct 2018 14:10:16 +0000 (14:10 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Oct 2018 14:10:16 +0000 (14:10 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264788 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gimple-fold.c

index 40f87aaeae59c71cec80be2b712b282d6270ef05..59a01f8643629e2e97e4feb6bf2d05f4c0601b60 100644 (file)
@@ -1,3 +1,7 @@
+2018-10-02  Jeff Law  <law@redhat.com>
+
+       * gimple-fold.c (get_range_strlen): Remove dead code.
+
 2018-10-02  Martin Sebor  <msebor@redhat.com>
            Jeff Law  <law@redhat.com>
 
index cf04c92180b0f34e060f61e597ba3b14d0672b41..fa1fc60876c06d3d857e83e7fb9dbc61fd22935c 100644 (file)
@@ -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)