[llvm] r259215 - Fix the build

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 29 09:46:57 PST 2016


Author: majnemer
Date: Fri Jan 29 11:46:57 2016
New Revision: 259215

URL: http://llvm.org/viewvc/llvm-project?rev=259215&view=rev
Log:
Fix the build

Modified:
    llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp?rev=259215&r1=259214&r2=259215&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp Fri Jan 29 11:46:57 2016
@@ -1532,7 +1532,7 @@ static void StabilizeOrder(SmallVectorIm
     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();
             });
 




More information about the llvm-commits mailing list