[all-commits] [llvm/llvm-project] 8d3943: [flang] Check if dummy is allocated before dealloc...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Thu Mar 9 08:48:48 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d394367d39fddeeb56a43d64f0df209162b330a
      https://github.com/llvm/llvm-project/commit/8d394367d39fddeeb56a43d64f0df209162b330a
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2023-03-09 (Thu, 09 Mar 2023)

  Changed paths:
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/test/Lower/intentout-deallocate.f90

  Log Message:
  -----------
  [flang] Check if dummy is allocated before deallocation for optional intent(out)

Similary to non-optional argument, check if the argument is allocated before
doing the deallocation for intent(out) optional.

Depends on D145679

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D145682




More information about the All-commits mailing list