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:
b1e9c43
)
[mlir] Fix forward the fix for incorrect Optional<ArrayAttr> usage.
author
Alexander Belyaev
<pifon@google.com>
Fri, 11 Nov 2022 09:52:08 +0000
(10:52 +0100)
committer
Alexander Belyaev
<pifon@google.com>
Fri, 11 Nov 2022 09:53:04 +0000
(10:53 +0100)
mlir/lib/Dialect/SCF/IR/SCF.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Dialect/SCF/IR/SCF.cpp
b/mlir/lib/Dialect/SCF/IR/SCF.cpp
index
0cca4bc
..
6a85fb6
100644
(file)
--- a/
mlir/lib/Dialect/SCF/IR/SCF.cpp
+++ b/
mlir/lib/Dialect/SCF/IR/SCF.cpp
@@
-1114,8
+1114,8
@@
LogicalResult ForeachThreadOp::verify() {
if (body->getArgument(i + getRank()).getType() != getOutputs()[i].getType())
return emitOpError("type mismatch between ")
<< i << "-th output and corresponding block argument";
-
if (getMapping()->getV
alue())
- for (auto map : getMapping()
.v
alue()) {
+
if (getMapping().has_v
alue())
+ for (auto map : getMapping()
->getV
alue()) {
if (!isa<DeviceMappingAttrInterface>(map))
return emitOpError()
<< getMappingAttrName() << " is not device mapping attribute";