[flang] Fix flang after MLIR update
authorJeff Niu <jeff@modular.com>
Fri, 9 Dec 2022 00:22:06 +0000 (16:22 -0800)
committerJeff Niu <jeff@modular.com>
Fri, 9 Dec 2022 00:22:22 +0000 (16:22 -0800)
flang/lib/Optimizer/CodeGen/TargetRewrite.cpp

index 1ad2526..87206c1 100644 (file)
@@ -501,7 +501,8 @@ public:
     // 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});
       }