[llvm] [BOLT][DWARF][NFC] Change how CloneUnitCtxMap is re-sized (PR #75876)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 20 14:32:12 PST 2023
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 a3952b4f022ce03c778ecc3b44ffff350b512735 5856dd1eea081a9df597bc780ac00fa6801715ab -- bolt/lib/Core/DIEBuilder.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Core/DIEBuilder.cpp b/bolt/lib/Core/DIEBuilder.cpp
index 8d16f499bf..762d3419ed 100644
--- a/bolt/lib/Core/DIEBuilder.cpp
+++ b/bolt/lib/Core/DIEBuilder.cpp
@@ -268,8 +268,8 @@ void DIEBuilder::buildCompileUnits(const std::vector<DWARFUnit *> &CUs) {
BuilderState.reset(new State());
// Allocating enough for current batch being processed.
// In real use cases we either processing a batch of CUs with no cross
- // references, or if they do have them it is due to LTO. With clang they will share the
- // same abbrev table. In either case this vector will not grow.
+ // references, or if they do have them it is due to LTO. With clang they will
+ // share the same abbrev table. In either case this vector will not grow.
getState().CloneUnitCtxMap.resize(CUs.size());
getState().Type = ProcessingType::CUs;
for (DWARFUnit *CU : CUs)
``````````
</details>
https://github.com/llvm/llvm-project/pull/75876
More information about the llvm-commits
mailing list