summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index b27ff77bf20..b33b3b60031 100644
--- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
@@ -1532,7 +1532,7 @@ static void StabilizeOrder(SmallVectorImpl<Value *> &BaseVec,
NameOrdering.push_back({BaseVec[i], LiveVec[i]});
std::sort(NameOrdering.begin(), NameOrdering.end(),
- [](BaseDerivedPair &L, BaseDerivedPair &R) {
+ [](const BaseDerivedPair &L, const BaseDerivedPair &R) {
return L.Derived->getName() < R.Derived->getName();
});
OpenPOWER on IntegriCloud