Skip to content

Commit 4c77cc6

Browse files
authored
[mlir][IR] Fix checkFoldResult error message (#104559)
checkFoldResult error message has expected and actual backwards.
1 parent 8d71016 commit 4c77cc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/IR/Operation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,8 @@ static void checkFoldResultTypes(Operation *op,
619619
if (auto value = dyn_cast<Value>(ofr)) {
620620
if (value.getType() != opResult.getType()) {
621621
op->emitOpError() << "folder produced a value of incorrect type: "
622-
<< opResult.getType()
623-
<< ", expected: " << value.getType();
622+
<< value.getType()
623+
<< ", expected: " << opResult.getType();
624624
assert(false && "incorrect fold result type");
625625
}
626626
}

0 commit comments

Comments
 (0)