[llvm] [ThinLTO] Populate declaration import status except for distributed ThinLTO under a default-off new option (PR #88024)

via llvm-commits llvm-commits at lists.llvm.org
Sun May 19 14:46:02 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 7b977e0f644c43232732e149b03d41de321d804e dd3562167ae589727b928cfa5ba7c759c5e13dad -- llvm/include/llvm/IR/ModuleSummaryIndex.h llvm/include/llvm/Transforms/IPO/FunctionImport.h llvm/lib/LTO/LTO.cpp llvm/lib/LTO/LTOBackend.cpp llvm/lib/Transforms/IPO/FunctionImport.cpp llvm/tools/llvm-link/llvm-link.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index cc4826601b..5bcd9d399a 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -218,7 +218,7 @@ void llvm::computeLTOCacheKey(
     for (auto &[Fn, ImportType] : Entry.getFunctions())
       ImportedGUIDs.push_back(std::make_pair(Fn, ImportType));
     llvm::sort(ImportedGUIDs);
-    for (auto &[GUID, Type]: ImportedGUIDs) {
+    for (auto &[GUID, Type] : ImportedGUIDs) {
       AddUint64(GUID);
       AddUint8(Type);
     }

``````````

</details>


https://github.com/llvm/llvm-project/pull/88024


More information about the llvm-commits mailing list