[Mlir-commits] [mlir] 25671db - [mlir] NFC: work around gcc-aarch64 v8.3 compilation issue in getRegionBranchSuccessorOperands implementation.
Christian Sigg
llvmlistbot at llvm.org
Wed Dec 28 03:24:02 PST 2022
Author: Christian Sigg
Date: 2022-12-28T12:23:37+01:00
New Revision: 25671db3d3432618425b67c701e7d8b65bec68f9
URL: https://github.com/llvm/llvm-project/commit/25671db3d3432618425b67c701e7d8b65bec68f9
DIFF: https://github.com/llvm/llvm-project/commit/25671db3d3432618425b67c701e7d8b65bec68f9.diff
LOG: [mlir] NFC: work around gcc-aarch64 v8.3 compilation issue in getRegionBranchSuccessorOperands implementation.
Added:
Modified:
mlir/lib/Interfaces/ControlFlowInterfaces.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Interfaces/ControlFlowInterfaces.cpp b/mlir/lib/Interfaces/ControlFlowInterfaces.cpp
index 65006f3569fca..9df5e551e6a37 100644
--- a/mlir/lib/Interfaces/ControlFlowInterfaces.cpp
+++ b/mlir/lib/Interfaces/ControlFlowInterfaces.cpp
@@ -394,5 +394,7 @@ std::optional<OperandRange>
mlir::getRegionBranchSuccessorOperands(Operation *operation,
std::optional<unsigned> regionIndex) {
auto range = getMutableRegionBranchSuccessorOperands(operation, regionIndex);
- return range ? std::optional<OperandRange>(*range) : std::nullopt;
+ if (range)
+ return static_cast<OperandRange>(*range);
+ return std::nullopt;
}
More information about the Mlir-commits
mailing list