[llvm] [llvm] Initialize SmallVector with ranges (NFC) (PR #100948)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 28 14:48:33 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 0fb9f898e227925f43780bfe0e4887fba9fb1a15 1192c4f76f54fe50901af599b8d868dc3e6dab8f --extensions cpp -- llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp llvm/lib/IR/BasicBlock.cpp llvm/lib/Target/PowerPC/PPCGenScalarMASSEntries.cpp llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp llvm/lib/Transforms/Utils/ValueMapper.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
index 1216dfa3ba..0d7a51bfe7 100644
--- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
+++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
@@ -260,7 +260,7 @@ void MCJIT::finalizeObject() {
 
   // Generate code for module is going to move objects out of the 'added' list,
   // so we need to copy that out before using it:
-  SmallVector<Module*, 16> ModsToAdd(OwnedModules.added());
+  SmallVector<Module *, 16> ModsToAdd(OwnedModules.added());
 
   for (auto *M : ModsToAdd)
     generateCodeForModule(M);

``````````

</details>


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


More information about the llvm-commits mailing list