We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1e9c43 commit 07665e7Copy full SHA for 07665e7
mlir/lib/Dialect/SCF/IR/SCF.cpp
@@ -1114,8 +1114,8 @@ LogicalResult ForeachThreadOp::verify() {
1114
if (body->getArgument(i + getRank()).getType() != getOutputs()[i].getType())
1115
return emitOpError("type mismatch between ")
1116
<< i << "-th output and corresponding block argument";
1117
- if (getMapping()->getValue())
1118
- for (auto map : getMapping().value()) {
+ if (getMapping().has_value())
+ for (auto map : getMapping()->getValue()) {
1119
if (!isa<DeviceMappingAttrInterface>(map))
1120
return emitOpError()
1121
<< getMappingAttrName() << " is not device mapping attribute";
0 commit comments