[all-commits] [llvm/llvm-project] 35f5c8: [flang][hlfir] Fixed missing deallocation for comp...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Mon Oct 2 07:46:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35f5c8d77a839fd0a3b15ca0085a7246ed459853
      https://github.com/llvm/llvm-project/commit/35f5c8d77a839fd0a3b15ca0085a7246ed459853
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2023-10-02 (Mon, 02 Oct 2023)

  Changed paths:
    M flang/lib/Lower/ConvertCall.cpp
    A flang/test/Lower/HLFIR/function-return-destroy.f90

  Log Message:
  -----------
  [flang][hlfir] Fixed missing deallocation for components of function … (#67768)

…result.

If function result have allocatable components or components that may
require finalization, we have to call Destroy runtime for them. We also
have to free the top-level entity's memory regardless of whether we
called Destroy or not.




More information about the All-commits mailing list