summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 165d01dc8b4..bcc881926bb 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/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();
});
OpenPOWER on IntegriCloud