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:
7795548
)
[mlir] Fix incorrect access to the Optional<ArrayAttr> underlying values.
author
Alexander Belyaev
<pifon@google.com>
Fri, 11 Nov 2022 09:46:04 +0000
(10:46 +0100)
committer
Alexander Belyaev
<pifon@google.com>
Fri, 11 Nov 2022 09:46:04 +0000
(10:46 +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
e32f671
..
0cca4bc
100644
(file)
--- a/
mlir/lib/Dialect/SCF/IR/SCF.cpp
+++ b/
mlir/lib/Dialect/SCF/IR/SCF.cpp
@@
-1114,7
+1114,7
@@
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()
.has_v
alue())
+ if (getMapping()
->getV
alue())
for (auto map : getMapping().value()) {
if (!isa<DeviceMappingAttrInterface>(map))
return emitOpError()