[all-commits] [llvm/llvm-project] 8c8fe1: [flang][hlfir] Fixed hlfir.assign codegen for poly...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Fri Apr 28 09:10:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c8fe11916b03887f89f04b216e0044f2a9cb505
      https://github.com/llvm/llvm-project/commit/8c8fe11916b03887f89f04b216e0044f2a9cb505
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2023-04-28 (Fri, 28 Apr 2023)

  Changed paths:
    M flang/lib/Optimizer/HLFIR/Transforms/ConvertToFIR.cpp
    M flang/test/HLFIR/assign-codegen.fir

  Log Message:
  -----------
  [flang][hlfir] Fixed hlfir.assign codegen for polymorphic LHS.

The RHS cannot be casted to the LHS type, when LHS is polymorphic.
With this change we will use the RHS type for emboxing with special
hadling for i1 type.

I created https://github.com/llvm/llvm-project/issues/62419 for the
AllocaOp generated during HLFIRtoFir conversion.

Reviewed By: jeanPerier

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




More information about the All-commits mailing list