[Mlir-commits] [mlir] [mlir] Improve error message when number of operands and types differ (PR #118488)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Dec 3 05:31:12 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 2526d5b1689389da9b194b5ec2878cfb2f4aca93 cb606775216294da4300342ace91ed8f97e83b81 --extensions h -- mlir/include/mlir/IR/OpImplementation.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/include/mlir/IR/OpImplementation.h b/mlir/include/mlir/IR/OpImplementation.h
index 4a5d5e2730..874f05499d 100644
--- a/mlir/include/mlir/IR/OpImplementation.h
+++ b/mlir/include/mlir/IR/OpImplementation.h
@@ -1609,9 +1609,8 @@ public:
       return success();
     }
 
-    InFlightDiagnostic diag =
-        emitError(loc)
-        << "number of operands and types do not match";
+    InFlightDiagnostic diag = emitError(loc)
+                              << "number of operands and types do not match";
     std::string lesserQuantityText = "operand";
     if (operandSize != 1)
       lesserQuantityText += "s";

``````````

</details>


https://github.com/llvm/llvm-project/pull/118488


More information about the Mlir-commits mailing list