[flang-commits] [flang] [flang] simplify pointer assignments (PR #168732)
via flang-commits
flang-commits at lists.llvm.org
Thu Nov 20 04:52:16 PST 2025
================
@@ -4813,13 +4813,13 @@ class FirConverter : public Fortran::lower::AbstractConverter {
// Generate pointer assignment with possibly empty bounds-spec. R1035: a
// bounds-spec is a lower bound value.
- void genPointerAssignment(
+ void genNoHLFIRPointerAssignment(
mlir::Location loc, const Fortran::evaluate::Assignment &assign,
const Fortran::evaluate::Assignment::BoundsSpec &lbExprs) {
Fortran::lower::StatementContext stmtCtx;
- if (!lowerToHighLevelFIR() &&
- Fortran::evaluate::IsProcedureDesignator(assign.rhs))
+ assert(!lowerToHighLevelFIR() && "code should not be called with HFLIR");
+ if (Fortran::evaluate::IsProcedureDesignator(assign.rhs))
TODO(loc, "procedure pointer assignment");
if (Fortran::evaluate::IsProcedurePointer(assign.lhs)) {
----------------
jeanPerier wrote:
It is, thanks! I removed it.
https://github.com/llvm/llvm-project/pull/168732
More information about the flang-commits
mailing list