[llvm] [LegacyPM] Remove unused getAdjustedAnalysisPointer() method (NFC) (PR #145738)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 25 09:45:27 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/Pass.h llvm/include/llvm/PassAnalysisSupport.h llvm/lib/IR/Pass.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/PassAnalysisSupport.h b/llvm/include/llvm/PassAnalysisSupport.h
index bf3a9c90d..e81c0c464 100644
--- a/llvm/include/llvm/PassAnalysisSupport.h
+++ b/llvm/include/llvm/PassAnalysisSupport.h
@@ -269,7 +269,7 @@ AnalysisType &Pass::getAnalysisID(AnalysisID PI, Function &F, bool *Changed) {
   else
     assert(!LocalChanged &&
            "A pass trigged a code update but the update status is lost");
-  return *(AnalysisType *) ResultPass;
+  return *(AnalysisType *)ResultPass;
 }
 
 } // end namespace llvm

``````````

</details>


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


More information about the llvm-commits mailing list