[flang-commits] [flang] 1897b67 - [flang] Fix flang after MLIR update

Jeff Niu via flang-commits flang-commits at lists.llvm.org
Thu Dec 8 16:22:36 PST 2022


Author: Jeff Niu
Date: 2022-12-08T16:22:22-08:00
New Revision: 1897b67ae86470ad54f6baea6f220933d8053b5b

URL: https://github.com/llvm/llvm-project/commit/1897b67ae86470ad54f6baea6f220933d8053b5b
DIFF: https://github.com/llvm/llvm-project/commit/1897b67ae86470ad54f6baea6f220933d8053b5b.diff

LOG: [flang] Fix flang after MLIR update

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp b/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
index 1ad2526bd04bf..87206c12efde0 100644
--- a/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
+++ b/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
@@ -501,7 +501,8 @@ class TargetRewrite : public fir::impl::TargetRewritePassBase<TargetRewrite> {
     // correctly.
     for (auto e : llvm::enumerate(funcTy.getInputs())) {
       unsigned index = e.index();
-      llvm::ArrayRef<mlir::NamedAttribute> attrs = func.getArgAttrs(index);
+      llvm::ArrayRef<mlir::NamedAttribute> attrs =
+          mlir::function_interface_impl::getArgAttrs(func, index);
       for (mlir::NamedAttribute attr : attrs) {
         savedAttrs.push_back({index, attr});
       }


        


More information about the flang-commits mailing list