[all-commits] [llvm/llvm-project] f88bc7: [flang] Handle dynamic type in move_alloc

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Wed Mar 1 00:45:19 PST 2023


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

  Changed paths:
    M flang/include/flang/Runtime/allocatable.h
    M flang/lib/Optimizer/Builder/Runtime/Allocatable.cpp
    M flang/runtime/allocatable.cpp
    M flang/test/Lower/Intrinsics/move_alloc.f90
    M flang/test/Lower/polymorphic.f90
    M flang/unittests/Optimizer/Builder/Runtime/AllocatableTest.cpp
    M flang/unittests/Runtime/Allocatable.cpp

  Log Message:
  -----------
  [flang] Handle dynamic type in move_alloc

Update move_alloc to carry over the dyanmic type of `from` to `to`
and reset the dynamic type of `from` to its declared type when it
is polymorphic.

Reviewed By: PeteSteinfeld

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




More information about the All-commits mailing list