[mlir][cf-to-llvm] Fix error message
authorJeff Niu <jeff@modular.com>
Fri, 2 Sep 2022 19:13:07 +0000 (12:13 -0700)
committerJeff Niu <jeff@modular.com>
Fri, 2 Sep 2022 19:13:19 +0000 (12:13 -0700)
mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp

index ea7fc8f..e7d7873 100644 (file)
@@ -103,7 +103,7 @@ static LogicalResult verifyMatchingValues(ConversionPatternRewriter &rewriter,
           diag << "mismatched types from operand # " << i << " ";
           diag << operandType;
           diag << " not compatible with destination block argument type ";
-          diag << argValue.getType();
+          diag << op.getOperandTypes().front();
           diag << " which should be converted with the parent op.";
         });
       }