[llvm] [GlobalMerge] Fix inaccurate debug print. (PR #124377)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 24 16:57:48 PST 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 db1ee18eda6329d7577ad019a47822220b3e293d cf2d5ae0edc98be1c2132856c013bb97857dbb1d --extensions cpp -- llvm/lib/CodeGen/GlobalMerge.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/GlobalMerge.cpp b/llvm/lib/CodeGen/GlobalMerge.cpp
index a22d902923..6ddc145bd9 100644
--- a/llvm/lib/CodeGen/GlobalMerge.cpp
+++ b/llvm/lib/CodeGen/GlobalMerge.cpp
@@ -737,10 +737,8 @@ bool GlobalMergeImpl::run(Module &M) {
else
Globals[{AddressSpace, Section}].push_back(&GV);
}
- LLVM_DEBUG(dbgs() << "GV "
- << (CanMerge ? "" : "not ")
- << "to merge: "
- << GV << "\n");
+ LLVM_DEBUG(dbgs() << "GV " << (CanMerge ? "" : "not ") << "to merge: " << GV
+ << "\n");
}
for (auto &P : Globals)
``````````
</details>
https://github.com/llvm/llvm-project/pull/124377
More information about the llvm-commits
mailing list