From 947d529e4194e0567cfbbea99127066f76c87269 Mon Sep 17 00:00:00 2001 From: Christian Sigg Date: Thu, 29 Dec 2022 12:02:58 +0100 Subject: [PATCH] [mlir] NFC: work around gcc-aarch64 v8.3 compilation issue in getRegionBranchSuccessorOperands implementation. https://reviews.llvm.org/rG25671db3d343 didn't quite do it because the underlying issue was that the specific compiler chokes on the second standard conversion sequence after the user-defined `MutableOperandRange::operator OperandRange() const` conversion (see https://en.cppreference.com/w/cpp/language/implicit_conversion). --- mlir/lib/Interfaces/ControlFlowInterfaces.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/lib/Interfaces/ControlFlowInterfaces.cpp b/mlir/lib/Interfaces/ControlFlowInterfaces.cpp index 9df5e55..deec605 100644 --- a/mlir/lib/Interfaces/ControlFlowInterfaces.cpp +++ b/mlir/lib/Interfaces/ControlFlowInterfaces.cpp @@ -395,6 +395,6 @@ mlir::getRegionBranchSuccessorOperands(Operation *operation, std::optional regionIndex) { auto range = getMutableRegionBranchSuccessorOperands(operation, regionIndex); if (range) - return static_cast(*range); + return range->operator OperandRange(); return std::nullopt; } -- 2.7.4