[llvm] 21def21 - [Utils] Drop const from a return type (NFC) (#145838)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 26 03:57:36 PDT 2025
Author: Kazu Hirata
Date: 2025-06-26T18:57:34+08:00
New Revision: 21def215b53e6e73f5025fc71cf486694e5c9a53
URL: https://github.com/llvm/llvm-project/commit/21def215b53e6e73f5025fc71cf486694e5c9a53
DIFF: https://github.com/llvm/llvm-project/commit/21def215b53e6e73f5025fc71cf486694e5c9a53.diff
LOG: [Utils] Drop const from a return type (NFC) (#145838)
We don't need const on the return type.
Added:
Modified:
llvm/lib/Transforms/Utils/InlineFunction.cpp
Removed:
################################################################################
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