[all-commits] [llvm/llvm-project] 1644ad: [flang][hlfir] Fixed AssociateOp codegen for 0-dim...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Fri May 12 11:34:03 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1644adfc74b4bde822b37398b3811f038073d9a9
      https://github.com/llvm/llvm-project/commit/1644adfc74b4bde822b37398b3811f038073d9a9
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2023-05-12 (Fri, 12 May 2023)

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

  Log Message:
  -----------
  [flang][hlfir] Fixed AssociateOp codegen for 0-dim variables.

The codegen tried to fir.convert !fir.box to !fir.ref for this case.
I used BoxAddr under a check for the type mismatch, but I am not sure
if this is the right fix. Maybe it has to be handled in the lowering.




More information about the All-commits mailing list