Skip to content

Commit 1897b67

Browse files
author
Jeff Niu
committed
[flang] Fix flang after MLIR update
1 parent 225ce67 commit 1897b67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang/lib/Optimizer/CodeGen/TargetRewrite.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,8 @@ class TargetRewrite : public fir::impl::TargetRewritePassBase<TargetRewrite> {
501501
// correctly.
502502
for (auto e : llvm::enumerate(funcTy.getInputs())) {
503503
unsigned index = e.index();
504-
llvm::ArrayRef<mlir::NamedAttribute> attrs = func.getArgAttrs(index);
504+
llvm::ArrayRef<mlir::NamedAttribute> attrs =
505+
mlir::function_interface_impl::getArgAttrs(func, index);
505506
for (mlir::NamedAttribute attr : attrs) {
506507
savedAttrs.push_back({index, attr});
507508
}

0 commit comments

Comments
 (0)