[Mlir-commits] [mlir] bf7a744 - [mlir][cf-to-llvm] Fix error message

Jeff Niu llvmlistbot at llvm.org
Fri Sep 2 12:13:32 PDT 2022


Author: Jeff Niu
Date: 2022-09-02T12:13:19-07:00
New Revision: bf7a74499c2026754d4b847dfa18dc7287651c60

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

LOG: [mlir][cf-to-llvm] Fix error message

Added: 
    

Modified: 
    mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp b/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp
index ea7fc8f5b7adb..e7d7873ab5cd5 100644
--- a/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp
+++ b/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp
@@ -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.";
         });
       }


        


More information about the Mlir-commits mailing list