[all-commits] [llvm/llvm-project] dc1552: [flang] DEALLOCATE(pointer) should use PointerDeal...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Jan 31 11:50:21 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dc15524f61e9fced14181860ce907163b0b3a504
      https://github.com/llvm/llvm-project/commit/dc15524f61e9fced14181860ce907163b0b3a504
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-01-31 (Wed, 31 Jan 2024)

  Changed paths:
    M flang/lib/Lower/Allocatable.cpp
    M flang/test/Lower/derived-pointer-components.f90

  Log Message:
  -----------
  [flang] DEALLOCATE(pointer) should use PointerDeallocate() (#79702)

A DEALLOCATE statement on a pointer should always use
PointerDeallocate() in the runtime, even if there's no STAT= or
polymorphism or derived types, so that it can be checked to ensure that
it is indeed a whole allocation of a pointer.




More information about the All-commits mailing list