[all-commits] [llvm/llvm-project] 11760b: [flang] Set correct box type when emboxing tempora...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Dec 6 06:02:49 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11760b3a27ea26c433b2df7b56798d918c62a813
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-12-06 (Tue, 06 Dec 2022)

  Changed paths:
    M flang/lib/Optimizer/Transforms/ArrayValueCopy.cpp
    M flang/test/Fir/array-value-copy-3.fir
    A flang/test/Fir/array-value-copy-4.fir

  Log Message:
  [flang] Set correct box type when emboxing temporary in array value copy pass

In some cases, the base type is already a fir.box type. This patch updates
the code to set the result box type to fir.box<T>, where T is the type
of the allocated temp.

This was reported in https://github.com/llvm/llvm-project/issues/59342

Reviewed By: jeanPerier, tblah

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

More information about the All-commits mailing list