[all-commits] [llvm/llvm-project] 479eed: [flang][runtime] Ensure PointerDeallocate actually...

jeanPerier via All-commits all-commits at lists.llvm.org
Mon Mar 28 01:23:02 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 479eed18503d1cf17fe9c0348cdb5f2968bc9969
      https://github.com/llvm/llvm-project/commit/479eed18503d1cf17fe9c0348cdb5f2968bc9969
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2022-03-28 (Mon, 28 Mar 2022)

  Changed paths:
    M flang/include/flang/Runtime/descriptor.h
    M flang/runtime/descriptor.cpp
    M flang/runtime/pointer.cpp
    M flang/unittests/Runtime/CMakeLists.txt
    A flang/unittests/Runtime/Pointer.cpp

  Log Message:
  -----------
  [flang][runtime] Ensure PointerDeallocate actually deallocate pointers

PointerDeallocate was silently doing nothing because it relied on
Destroy that doe not do anything for Pointers. Add an option to Destroy
in order to destroy pointers.

Add a unit test for PointerDeallocate.

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




More information about the All-commits mailing list