Attempt to fix buildbot after r347489
llvm-svn: 347492
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 165d01d..bcc8819 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -7972,7 +7972,7 @@
// 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();
});