]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
a68: remove self-assign in a68_lower_collateral_clause [PR algol68/122966]
authorJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 3 Dec 2025 11:15:51 +0000 (12:15 +0100)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 3 Dec 2025 11:53:31 +0000 (12:53 +0100)
This commit removes a spurious self-assignment that was preventing
building with clang.

Signed-off-by: Jose E. Marchesi <jemarch@gnu.org>
gcc/algol68/ChangeLog

PR algol68/122966
* a68-low-clauses.cc (a68_lower_collateral_clause): Remove
self-assignment.

gcc/algol68/a68-low-clauses.cc

index 8cc81500b237be8369a87fc168d9732ba27e4dd9..d36b4cc282ac1da9b239ff089c7e83a73205e8da 100644 (file)
@@ -1288,7 +1288,6 @@ a68_lower_collateral_clause (NODE_T *p ATTRIBUTE_UNUSED,
              // XXX should we make a copy of the sub_multiple_elements here?
              // We DO need to iterate slicing, because of strides: if
              // the sub_multiple is a trimmer.
-             sub_multiple_elements = sub_multiple_elements;
              tree sub_multiple_elements_type = TREE_TYPE (sub_multiple_elements);
              tree sub_multiple_num_elems = a68_multiple_num_elems (sub_multiple);
              tree sub_multiple_element_type = TREE_TYPE (sub_multiple_elements_type);