[flang-commits] [flang] [flang] Move whole allocatable assignment implicit conversion to lowering (PR #70317)

Pete Steinfeld via flang-commits flang-commits at lists.llvm.org
Thu Oct 26 06:55:20 PDT 2023


================
@@ -1857,6 +1857,23 @@ MaybeExpr ExpressionAnalyzer::Analyze(const parser::ArrayConstructor &array) {
   return acContext.ToExpr();
 }
 
+// Check if implicit conversion of expr to the symbol type is legal (if needed),
+// and make it explicit if requested.
+MaybeExpr implicitConvertTo(const semantics::Symbol &sym, Expr<SomeType> &&expr,
----------------
psteinfeld wrote:

Should this function be static?

https://github.com/llvm/llvm-project/pull/70317


More information about the flang-commits mailing list