[llvm] [Utils] Drop const from a return type (NFC) (PR #145838)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 25 22:54:13 PDT 2025


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/145838

We don't need const on the return type.


>From 690116ace947ba8882b0c69f26d31bc6e36149a9 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Wed, 25 Jun 2025 08:45:15 -0700
Subject: [PATCH] [Utils] Drop const from a return type (NFC)

We don't need const on the return type.
---
 llvm/lib/Transforms/Utils/InlineFunction.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 7df5e9958182c..bb198d7f048db 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -2233,7 +2233,7 @@ inlineRetainOrClaimRVCalls(CallBase &CB, objcarc::ARCInstKind RVCallKind,
 // profile. Note: we only update the "name" and "index" operands in the
 // instrumentation intrinsics, we leave the hash and total nr of indices as-is,
 // it's not worth updating those.
-static const std::pair<std::vector<int64_t>, std::vector<int64_t>>
+static std::pair<std::vector<int64_t>, std::vector<int64_t>>
 remapIndices(Function &Caller, BasicBlock *StartBB,
              PGOContextualProfile &CtxProf, uint32_t CalleeCounters,
              uint32_t CalleeCallsites) {



More information about the llvm-commits mailing list