[llvm-branch-commits] [llvm] [CodeGen][NPM] Clear MachineFunctions without using PA (PR #139517)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jul 8 03:28:55 PDT 2025


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 HEAD~1 HEAD --extensions h,cpp -- llvm/include/llvm/CodeGen/MachineFunctionAnalysis.h llvm/include/llvm/IR/PassManager.h llvm/include/llvm/Passes/CodeGenPassBuilder.h llvm/lib/CodeGen/MachineFunctionAnalysis.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/MachineFunctionAnalysis.cpp b/llvm/lib/CodeGen/MachineFunctionAnalysis.cpp
index c166f49df..116a91958 100644
--- a/llvm/lib/CodeGen/MachineFunctionAnalysis.cpp
+++ b/llvm/lib/CodeGen/MachineFunctionAnalysis.cpp
@@ -47,7 +47,7 @@ MachineFunctionAnalysis::run(Function &F, FunctionAnalysisManager &FAM) {
 }
 
 PreservedAnalyses FreeMachineFunctionPass::run(Function &F,
-                                           FunctionAnalysisManager &FAM) {
+                                               FunctionAnalysisManager &FAM) {
   FAM.clearAnalysis<MachineFunctionAnalysis>(F);
   return PreservedAnalyses::all();
 }

``````````

</details>


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


More information about the llvm-branch-commits mailing list