[lld] [lld][InstrProf] Do not use cstring offset hashes in function order f… (PR #113604)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 24 11:20:26 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 4bce21480fc52bf583b6bfe5072f9eb70c21f6e4 246ba004d249c66e94a1721f59d2e38db10abfc6 --extensions cpp -- lld/MachO/BPSectionOrderer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/MachO/BPSectionOrderer.cpp b/lld/MachO/BPSectionOrderer.cpp
index 94bde485cd..5db2242a35 100644
--- a/lld/MachO/BPSectionOrderer.cpp
+++ b/lld/MachO/BPSectionOrderer.cpp
@@ -53,7 +53,7 @@ getRelocHash(const Reloc &reloc,
kind = ("Section " + Twine(static_cast<uint8_t>(isec->kind()))).str();
if (auto *sym = reloc.referent.dyn_cast<Symbol *>()) {
kind += (" Symbol " + Twine(static_cast<uint8_t>(sym->kind()))).str();
- if (auto *d = dyn_cast<Defined>(sym))
+ if (auto *d = dyn_cast<Defined>(sym))
return getRelocHash(kind, sectionIdx.value_or(0), d->value, reloc.addend);
}
return getRelocHash(kind, sectionIdx.value_or(0), 0, reloc.addend);
``````````
</details>
https://github.com/llvm/llvm-project/pull/113604
More information about the llvm-commits
mailing list