[Mlir-commits] [mlir] [mlir][vector] Fix a crash in `VectorExtractOpConversion` (PR #115717)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Nov 11 05:58:50 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 b91b6235dee3be69b429cace319ff39f1eadfe14 f58eb967e1d9400ad83d2aae5891887d0a52dd43 --extensions cpp -- mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
index 5b501744af..9cb09e9d9c 100644
--- a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
+++ b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
@@ -1106,7 +1106,7 @@ public:
// One-shot extraction of vector from array (only requires extractvalue).
// Except for extracting 1-element vectors.
if (position.size() <
- static_cast<size_t>(extractOp.getSourceVectorType().getRank())) {
+ static_cast<size_t>(extractOp.getSourceVectorType().getRank())) {
if (extractOp.hasDynamicPosition())
return failure();
``````````
</details>
https://github.com/llvm/llvm-project/pull/115717
More information about the Mlir-commits
mailing list