[llvm] [Utils] Extract ProcessSubprogramAttachment from CloneFunctionInto (PR #114537)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 06:34:25 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 4ed7bcb4a6100b2634580d9ef39e2f4cb3470fe9 2f40b01c3766bbce7ab9b2fc2b005c1e24d34cda --extensions cpp,h -- llvm/include/llvm/Transforms/Utils/Cloning.h llvm/lib/Transforms/Utils/CloneFunction.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index 3b971d972e..3a0a160b04 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -212,7 +212,6 @@ void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
if (Changes == CloneFunctionChangeType::DifferentModule) {
assert(NewFunc->getParent() &&
"Need parent of new function to maintain debug info invariants");
-
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/114537
More information about the llvm-commits
mailing list