[llvm] Let eraseFromParent return iterator (PR #109849)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 12:29:43 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 65c57066e099fe7f1357485cd6c4fb068bc82323 f42963a7a5a1327fa396bb6c1f9f23809c5d6c15 --extensions cpp,h -- llvm/include/llvm/CodeGen/MachineBasicBlock.h llvm/include/llvm/CodeGen/MachineFunction.h llvm/include/llvm/CodeGen/MachineInstr.h llvm/lib/CodeGen/MachineBasicBlock.cpp llvm/lib/CodeGen/MachineInstr.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/CodeGen/MachineBasicBlock.h b/llvm/include/llvm/CodeGen/MachineBasicBlock.h
index fd7160c75c..db1e19336c 100644
--- a/llvm/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/llvm/include/llvm/CodeGen/MachineBasicBlock.h
@@ -49,16 +49,16 @@ template <> struct ilist_alloc_traits<MachineBasicBlock> {
 };
 
 template <> struct ilist_callback_traits<MachineBasicBlock> {
-  void addNodeToList(MachineBasicBlock* N);
-  void removeNodeFromList(MachineBasicBlock* N);
+  void addNodeToList(MachineBasicBlock *N);
+  void removeNodeFromList(MachineBasicBlock *N);
 
   template <class Iterator>
-  void transferNodesFromList(ilist_callback_traits &OldList, Iterator, Iterator) {
+  void transferNodesFromList(ilist_callback_traits &OldList, Iterator,
+                             Iterator) {
     assert(this == &OldList && "never transfer MBBs between functions");
   }
 };
 
-
 template <typename IRUnitT, typename... ExtraArgTs> class AnalysisManager;
 using MachineFunctionAnalysisManager = AnalysisManager<MachineFunction>;
 

``````````

</details>


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


More information about the llvm-commits mailing list