[all-commits] [llvm/llvm-project] d61731: [Flang] Get fir::SequenceType from hlfir::ExprType...

Daniel Chen via All-commits all-commits at lists.llvm.org
Thu May 2 07:04:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d6173167df31388869d22751fdd745f5da928ef7
      https://github.com/llvm/llvm-project/commit/d6173167df31388869d22751fdd745f5da928ef7
  Author: Daniel Chen <cdchen at ca.ibm.com>
  Date:   2024-05-02 (Thu, 02 May 2024)

  Changed paths:
    M flang/lib/Lower/ConvertCall.cpp

  Log Message:
  -----------
  [Flang] Get fir::SequenceType from hlfir::ExprType before getShape. (#90055)

This PR is to fix issue #88889 . 
Because the type of an actual argument of an array expression of
character has type of `hlfir::ExprType`, we need to transform it to
`fir::SequenceType` before calling `getBoxTypeWithNewShape`.
Calling `hlfir::ExprType::getShape` inside of `getBoxTypeWithNewShape`
will introduce a circular dependency on FIRDialect and HLFIRDialect
libraries.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list