[Mlir-commits] [mlir] 175265e - Fix another g++ incompatibility. Same issue as 932f27dc1f03.

Benjamin Kramer llvmlistbot at llvm.org
Fri Apr 8 06:53:31 PDT 2022


Author: Benjamin Kramer
Date: 2022-04-08T15:53:23+02:00
New Revision: 175265ef800f28f94eb63c19d97759a214d33c06

URL: https://github.com/llvm/llvm-project/commit/175265ef800f28f94eb63c19d97759a214d33c06
DIFF: https://github.com/llvm/llvm-project/commit/175265ef800f28f94eb63c19d97759a214d33c06.diff

LOG: Fix another g++ incompatibility. Same issue as 932f27dc1f03.

Added: 
    

Modified: 
    mlir/include/mlir/Interfaces/ControlFlowInterfaces.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Interfaces/ControlFlowInterfaces.h b/mlir/include/mlir/Interfaces/ControlFlowInterfaces.h
index 3fc73de2c0cd6..ff4304c03a8fa 100644
--- a/mlir/include/mlir/Interfaces/ControlFlowInterfaces.h
+++ b/mlir/include/mlir/Interfaces/ControlFlowInterfaces.h
@@ -107,8 +107,8 @@ class SuccessorOperands {
   unsigned getOperandIndex(unsigned blockArgumentIndex) const {
     assert(!isOperandProduced(blockArgumentIndex) &&
            "can't map operand produced by the operation");
-    return static_cast<mlir::OperandRange>(forwardedOperands)
-               .getBeginOperandIndex() +
+    OperandRange operands = forwardedOperands;
+    return operands.getBeginOperandIndex() +
            (blockArgumentIndex - producedOperandCount);
   }
 


        


More information about the Mlir-commits mailing list