Browse Source

Attempt to fix buildbot after r347489

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347492 91177308-0d34-0410-b5e6-96231b3b80d8
Eugene Leviant 6 years ago
parent
commit
5ae36ee5a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/AsmParser/LLParser.cpp

+ 1 - 1
lib/AsmParser/LLParser.cpp

@@ -7972,7 +7972,7 @@ bool LLParser::ParseOptionalRefs(std::vector<ValueInfo> &Refs) {
 
   // 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();
   });