[Mlir-commits] [mlir] Fix crash when using when using --finalize-memref-to-llvm (PR #112433)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Oct 25 02:55:25 PDT 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 a7971449e59215fb2fefbfcbd8bd1e7b40d4cd1f 46719a2091b3205f50bf2b5ca70e5d50a5e4d487 --extensions cpp -- mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp mlir/lib/Conversion/MemRefToLLVM/AllocLikeConversion.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Conversion/MemRefToLLVM/AllocLikeConversion.cpp b/mlir/lib/Conversion/MemRefToLLVM/AllocLikeConversion.cpp
index b9cd1dda55..a6408391b1 100644
--- a/mlir/lib/Conversion/MemRefToLLVM/AllocLikeConversion.cpp
+++ b/mlir/lib/Conversion/MemRefToLLVM/AllocLikeConversion.cpp
@@ -75,7 +75,7 @@ std::tuple<Value, Value> AllocationOpLLVMLowering::allocateBufferManuallyAlign(
   // Allocate the underlying buffer.
   Type elementPtrType = this->getElementPtrType(memRefType);
   if (!elementPtrType) {
-    emitError(loc,"conversion of memref memory space ")
+    emitError(loc, "conversion of memref memory space ")
         << memRefType.getMemorySpace()
         << " to integer address space "
            "failed. Consider adding memory space conversions.";

``````````

</details>


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


More information about the Mlir-commits mailing list