[flang-commits] [flang] 65524fc - [flang][CodeGen] Replace correct op in BoxedProcedurePass (#84375)

via flang-commits flang-commits at lists.llvm.org
Fri Mar 8 05:20:59 PST 2024


Author: Krzysztof Parzyszek
Date: 2024-03-08T07:20:55-06:00
New Revision: 65524fcb5d4e5f4f5450c38d3e075cce192586bb

URL: https://github.com/llvm/llvm-project/commit/65524fcb5d4e5f4f5450c38d3e075cce192586bb
DIFF: https://github.com/llvm/llvm-project/commit/65524fcb5d4e5f4f5450c38d3e075cce192586bb.diff

LOG: [flang][CodeGen] Replace correct op in BoxedProcedurePass (#84375)

Added: 
    

Modified: 
    flang/lib/Optimizer/CodeGen/BoxedProcedure.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Optimizer/CodeGen/BoxedProcedure.cpp b/flang/lib/Optimizer/CodeGen/BoxedProcedure.cpp
index 846a78931acba7..4cf39716a73755 100644
--- a/flang/lib/Optimizer/CodeGen/BoxedProcedure.cpp
+++ b/flang/lib/Optimizer/CodeGen/BoxedProcedure.cpp
@@ -342,7 +342,7 @@ class BoxedProcedurePass
             auto toTy = typeConverter.convertType(ty);
             auto toOnTy = typeConverter.convertType(onTy);
             rewriter.replaceOpWithNewOp<LenParamIndexOp>(
-                mem, toTy, index.getFieldId(), toOnTy, index.getTypeparams());
+                index, toTy, index.getFieldId(), toOnTy, index.getTypeparams());
           }
         } else if (op->getDialect() == firDialect) {
           rewriter.startOpModification(op);


        


More information about the flang-commits mailing list