[llvm] [NFC] `const`-ify argument in `promoteInternals` (PR #181079)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 11 19:18:25 PST 2026
https://github.com/mtrofin created https://github.com/llvm/llvm-project/pull/181079
None
>From 4b1664666f8af2e7331f521b604a43c93a4b9d5f Mon Sep 17 00:00:00 2001
From: Mircea Trofin <mtrofin at google.com>
Date: Wed, 11 Feb 2026 19:17:55 -0800
Subject: [PATCH] [NFC] `const`-ify argument in `promoteInternals`
---
llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp b/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
index 2340fe5565388..d1dc8164d1b46 100644
--- a/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
+++ b/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
@@ -46,7 +46,7 @@ static bool allowPromotionAlias(const std::string &Name) {
// Promote each local-linkage entity defined by ExportM and used by ImportM by
// changing visibility and appending the given ModuleId.
void promoteInternals(Module &ExportM, Module &ImportM, StringRef ModuleId,
- SetVector<GlobalValue *> &PromoteExtra) {
+ const SetVector<GlobalValue *> &PromoteExtra) {
DenseMap<const Comdat *, Comdat *> RenamedComdats;
for (auto &ExportGV : ExportM.global_values()) {
if (!ExportGV.hasLocalLinkage())
More information about the llvm-commits
mailing list