projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
225ce67
)
[flang] Fix flang after MLIR update
author
Jeff Niu
<jeff@modular.com>
Fri, 9 Dec 2022 00:22:06 +0000
(16:22 -0800)
committer
Jeff Niu
<jeff@modular.com>
Fri, 9 Dec 2022 00:22:22 +0000
(16:22 -0800)
flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
patch
|
blob
|
history
diff --git
a/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
b/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
index
1ad2526
..
87206c1
100644
(file)
--- a/
flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
+++ b/
flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
@@
-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});
}