diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2020-11-03 14:20:14 +0100 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2020-11-03 15:39:15 +0100 |
commit | 6ff95a6eefbe02288fbc9f3de456e5e820d2bd80 (patch) | |
tree | d741b21a3e79ccbf528b11d62adc84786e58dabf /gcc/fold-const.c | |
parent | 23ac7a009ecfeec3eab79136abed8aac9768b458 (diff) | |
download | gcc-6ff95a6eefbe02288fbc9f3de456e5e820d2bd80.zip gcc-6ff95a6eefbe02288fbc9f3de456e5e820d2bd80.tar.gz gcc-6ff95a6eefbe02288fbc9f3de456e5e820d2bd80.tar.bz2 |
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 <bernd.edlinger@hotmail.de>
* fold-const.c (getbyterep): Remove duplicated statement.
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index ebd32bb..c47557d 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. */ |