diff --git a/flang/runtime/pointer.cpp b/flang/runtime/pointer.cpp --- a/flang/runtime/pointer.cpp +++ b/flang/runtime/pointer.cpp @@ -206,7 +206,7 @@ if (!target) { return pointer.raw().base_addr != nullptr; } - if (!target->raw().base_addr || target->ElementBytes() == 0) { + if (!target->raw().base_addr) { return false; } int rank{pointer.rank()};