[all-commits] [llvm/llvm-project] 39ad49: [flang] Make sure the length is propagated when em...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Feb 21 11:37:05 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39ad49ec61c4b6d170a277d0ea5eee89f29a456c
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2023-02-21 (Tue, 21 Feb 2023)

  Changed paths:
    M flang/lib/Optimizer/Builder/MutableBox.cpp
    M flang/test/Lower/polymorphic.f90

  Log Message:
  [flang] Make sure the length is propagated when emboxing a char to unlimited polymoprhic box

When passing a character with unknown length to a subroutine expecting
an unlimited polymorphic pointer, a new descriptor is created. The
fir.embox operation needs to carry over the length from the character
to be passed correctly.

Reviewed By: PeteSteinfeld

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

More information about the All-commits mailing list