summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/CFGUpdate.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/Support/CFGUpdate.h')
-rw-r--r--llvm/include/llvm/Support/CFGUpdate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/CFGUpdate.h b/llvm/include/llvm/Support/CFGUpdate.h
index c1b1e3df803..63c24a3d2a2 100644
--- a/llvm/include/llvm/Support/CFGUpdate.h
+++ b/llvm/include/llvm/Support/CFGUpdate.h
@@ -105,7 +105,7 @@ void LegalizeUpdates(ArrayRef<Update<NodePtr>> AllUpdates,
Operations[{U.getTo(), U.getFrom()}] = int(i);
}
- llvm::sort(Result.begin(), Result.end(),
+ llvm::sort(Result,
[&Operations](const Update<NodePtr> &A, const Update<NodePtr> &B) {
return Operations[{A.getFrom(), A.getTo()}] >
Operations[{B.getFrom(), B.getTo()}];
OpenPOWER on IntegriCloud