[Mlir-commits] [mlir] checkFoldResult has incorrect error message (PR #104559)
Luke Boyer
llvmlistbot at llvm.org
Fri Aug 16 00:26:05 PDT 2024
https://github.com/LukeBoyer created https://github.com/llvm/llvm-project/pull/104559
checkFoldResult error message has expected and actual backwards.
>From 56e52c546a0b6d58f8b1f5a31ae4cec6850f8b36 Mon Sep 17 00:00:00 2001
From: Luke Boyer <lukeboyer at google.com>
Date: Fri, 16 Aug 2024 07:23:49 +0000
Subject: [PATCH] checkFoldResult has incorrect error message
---
mlir/lib/IR/Operation.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mlir/lib/IR/Operation.cpp b/mlir/lib/IR/Operation.cpp
index b51357198b1ca0..8f28d61c732cdc 100644
--- a/mlir/lib/IR/Operation.cpp
+++ b/mlir/lib/IR/Operation.cpp
@@ -619,8 +619,8 @@ static void checkFoldResultTypes(Operation *op,
if (auto value = dyn_cast<Value>(ofr)) {
if (value.getType() != opResult.getType()) {
op->emitOpError() << "folder produced a value of incorrect type: "
- << opResult.getType()
- << ", expected: " << value.getType();
+ << value.getType()
+ << ", expected: " << opResult.getType();
assert(false && "incorrect fold result type");
}
}
More information about the Mlir-commits
mailing list