From: Bernd Edlinger Date: Tue, 3 Nov 2020 13:20:14 +0000 (+0100) Subject: Cleanup of a merge mistake in fold-const.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ff95a6eefbe02288fbc9f3de456e5e820d2bd80;p=gcc.git Cleanup of a merge mistake in fold-const.c This removes a duplicated statement. It was apparently introduced due to a merge mistake. 2020-11-03 Bernd Edlinger * fold-const.c (getbyterep): Remove duplicated statement. --- diff --git a/gcc/fold-const.c b/gcc/fold-const.c index ebd32bb2e04..c47557daeba 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -15565,11 +15565,6 @@ getbyterep (tree src, unsigned HOST_WIDE_INT *strsize) is equal to strlen (A) + 1. */ const unsigned HOST_WIDE_INT array_size = tree_to_uhwi (mem_size); unsigned HOST_WIDE_INT init_bytes = TREE_STRING_LENGTH (src); - - /* Ideally this would turn into a gcc_checking_assert over time. */ - if (init_bytes > array_size) - init_bytes = array_size; - const char *string = TREE_STRING_POINTER (src); /* Ideally this would turn into a gcc_checking_assert over time. */