[Mlir-commits] [mlir] [mlir] Add test for invalid entry block (PR #133167)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Mar 31 11:42:45 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp b/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
index 6bd1b0ab8..c04fa2a4c 100644
--- a/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
+++ b/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
@@ -1027,7 +1027,7 @@ LogicalResult spirv::FuncOp::verifyBody() {
unsigned numArguments = this->getNumArguments();
if (entryBlock.getNumArguments() != numArguments)
return emitOpError("entry block must have ")
- << numArguments << " arguments to match function signature";
+ << numArguments << " arguments to match function signature";
}
auto walkResult = walk([fnType](Operation *op) -> WalkResult {
``````````
</details>
https://github.com/llvm/llvm-project/pull/133167
More information about the Mlir-commits
mailing list