[llvm] r347492 - Attempt to fix buildbot after r347489

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 23 03:28:59 PST 2018


Author: evgeny777
Date: Fri Nov 23 03:28:58 2018
New Revision: 347492

URL: http://llvm.org/viewvc/llvm-project?rev=347492&view=rev
Log:
Attempt to fix buildbot after r347489

Modified:
    llvm/trunk/lib/AsmParser/LLParser.cpp

Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=347492&r1=347491&r2=347492&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Fri Nov 23 03:28:58 2018
@@ -7972,7 +7972,7 @@ bool LLParser::ParseOptionalRefs(std::ve
 
   // Sort value contexts so that ones with readonly ValueInfo are at the end
   // of VContexts vector. This is needed to match immutableRefCount() behavior.
-  llvm::sort(VContexts, [](ValueContext &VC1, ValueContext &VC2) {
+  llvm::sort(VContexts, [](const ValueContext &VC1, const ValueContext &VC2) {
     return VC1.VI.isReadOnly() < VC2.VI.isReadOnly();
   });
 




More information about the llvm-commits mailing list