[flang-commits] [flang] [flang] simplify pointer assignments (PR #168732)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Thu Nov 20 03:23:57 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)) {
----------------
tblah wrote:
Is the body of this if now dead?
https://github.com/llvm/llvm-project/pull/168732
More information about the flang-commits
mailing list