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 48655f7 commit 25671dbCopy full SHA for 25671db
mlir/lib/Interfaces/ControlFlowInterfaces.cpp
@@ -394,5 +394,7 @@ std::optional<OperandRange>
394
mlir::getRegionBranchSuccessorOperands(Operation *operation,
395
std::optional<unsigned> regionIndex) {
396
auto range = getMutableRegionBranchSuccessorOperands(operation, regionIndex);
397
- return range ? std::optional<OperandRange>(*range) : std::nullopt;
+ if (range)
398
+ return static_cast<OperandRange>(*range);
399
+ return std::nullopt;
400
}
0 commit comments