[llvm] [llvm-rtdyld] Preallocate Memory Slab (PR #71409)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 08:10:37 PST 2023


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 8f76522a61d01cf7d70debd39418259e969bb8d6 046a6320236bd9a47e2f1119eef49114b027f4ef -- llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp b/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
index 267e12a858b5..7567838ef624 100644
--- a/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
+++ b/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
@@ -260,7 +260,7 @@ public:
     PreallocSlab = MB;
     UsePreallocation = true;
     SlabSize = Size;
-    SlabStart = CurrentSlabOffset = (uintptr_t) MB.base();
+    SlabStart = CurrentSlabOffset = (uintptr_t)MB.base();
   }
 
   uint8_t *allocateFromSlab(uintptr_t Size, unsigned Alignment, bool isCode,

``````````

</details>


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


More information about the llvm-commits mailing list