[llvm] [MTE] [NFC] use vector to collect globals to tag (PR #120283)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 17 10:47:29 PST 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 c135f6ffe2542bdde5a2a3e1d6515a6fc7031967 76829f2ba98e97b5641622d01a65f69dfdf13e9c --extensions cpp -- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 43e6270491..47a93d624d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -2444,13 +2444,13 @@ bool AsmPrinter::doFinalization(Module &M) {
// we can conditionalize accesses based on whether or not it is nullptr.
MF = nullptr;
- std::vector<GlobalVariable*> GlobalsToTag;
+ std::vector<GlobalVariable *> GlobalsToTag;
for (GlobalVariable &G : M.globals()) {
if (G.isDeclaration() || !G.isTagged())
continue;
GlobalsToTag.push_back(&G);
}
- for (GlobalVariable* G : GlobalsToTag)
+ for (GlobalVariable *G : GlobalsToTag)
tagGlobalDefinition(M, G);
// Gather all GOT equivalent globals in the module. We really need two
``````````
</details>
https://github.com/llvm/llvm-project/pull/120283
More information about the llvm-commits
mailing list