diff options
| author | Yuao Ma <c8ef@outlook.com> | 2025-10-29 23:40:18 +0800 |
|---|---|---|
| committer | c8ef <c8ef@outlook.com> | 2025-10-30 00:30:36 +0800 |
| commit | d0ff10a005eed4ca47d05bc0a93b3daf643025cb (patch) | |
| tree | 1799ed7a2e922705d8027ee9a5f020aab5aec1b3 /gcc | |
| parent | 8728f60b9750ea10abd1a02db7972a6ff6ef2eae (diff) | |
| download | gcc-d0ff10a005eed4ca47d05bc0a93b3daf643025cb.zip gcc-d0ff10a005eed4ca47d05bc0a93b3daf643025cb.tar.gz gcc-d0ff10a005eed4ca47d05bc0a93b3daf643025cb.tar.bz2 | |
fortran: remove redundant code related to constant pointer
This part is unreachable after r16-4474-g2c1949bf152f8f.
gcc/fortran/ChangeLog:
* trans-expr.cc (gfc_conv_gfc_desc_to_cfi_desc): Remove unreachable
code.
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/fortran/trans-expr.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/fortran/trans-expr.cc b/gcc/fortran/trans-expr.cc index 67b60c7..2e88e65 100644 --- a/gcc/fortran/trans-expr.cc +++ b/gcc/fortran/trans-expr.cc @@ -6090,9 +6090,6 @@ gfc_conv_gfc_desc_to_cfi_desc (gfc_se *parmse, gfc_expr *e, gfc_symbol *fsym) se.want_pointer = 1; gfc_conv_expr (&se, e); gfc = se.expr; - /* gfc_conv_constant ignores se.want_poiner, e.g. for string_cst. */ - if (!POINTER_TYPE_P (TREE_TYPE (gfc))) - gfc = gfc_build_addr_expr (NULL, gfc); } else { |
