[llvm] 5675f44 - [Transforms] Remove unnecessary const from a return type (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 19 08:29:58 PDT 2023
Author: Kazu Hirata
Date: 2023-08-19T08:29:51-07:00
New Revision: 5675f44cebf602931e884595c1d488bcedf6b8f2
URL: https://github.com/llvm/llvm-project/commit/5675f44cebf602931e884595c1d488bcedf6b8f2
DIFF: https://github.com/llvm/llvm-project/commit/5675f44cebf602931e884595c1d488bcedf6b8f2.diff
LOG: [Transforms] Remove unnecessary const from a return type (NFC)
Added:
Modified:
llvm/lib/Transforms/Utils/SampleProfileInference.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/SampleProfileInference.cpp b/llvm/lib/Transforms/Utils/SampleProfileInference.cpp
index 31d62fbf0618b4..101b70d8def4a4 100644
--- a/llvm/lib/Transforms/Utils/SampleProfileInference.cpp
+++ b/llvm/lib/Transforms/Utils/SampleProfileInference.cpp
@@ -159,7 +159,7 @@ class MinCostMaxFlow {
/// Get the total flow from a given source node.
/// Returns a list of pairs (target node, amount of flow to the target).
- const std::vector<std::pair<uint64_t, int64_t>> getFlow(uint64_t Src) const {
+ std::vector<std::pair<uint64_t, int64_t>> getFlow(uint64_t Src) const {
std::vector<std::pair<uint64_t, int64_t>> Flow;
for (const auto &Edge : Edges[Src]) {
if (Edge.Flow > 0)
More information about the llvm-commits
mailing list