Skip to content

Commit 25671db

Browse files
committed
[mlir] NFC: work around gcc-aarch64 v8.3 compilation issue in getRegionBranchSuccessorOperands implementation.
1 parent 48655f7 commit 25671db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mlir/lib/Interfaces/ControlFlowInterfaces.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,5 +394,7 @@ std::optional<OperandRange>
394394
mlir::getRegionBranchSuccessorOperands(Operation *operation,
395395
std::optional<unsigned> regionIndex) {
396396
auto range = getMutableRegionBranchSuccessorOperands(operation, regionIndex);
397-
return range ? std::optional<OperandRange>(*range) : std::nullopt;
397+
if (range)
398+
return static_cast<OperandRange>(*range);
399+
return std::nullopt;
398400
}

0 commit comments

Comments
 (0)