diff --git a/flang/runtime/ISO_Fortran_binding.cpp b/flang/runtime/ISO_Fortran_binding.cpp --- a/flang/runtime/ISO_Fortran_binding.cpp +++ b/flang/runtime/ISO_Fortran_binding.cpp @@ -237,8 +237,6 @@ std::size_t minElemLen{MinElemLen(type)}; if (minElemLen > 0) { elem_len = minElemLen; - } else if (elem_len <= 0) { - return CFI_INVALID_ELEM_LEN; } descriptor->base_addr = base_addr; descriptor->elem_len = elem_len;