diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 20:50:12 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 20:50:12 +0000 |
commit | e6d1592492a3a379186bfb02bd0f4eda0669c0d5 (patch) | |
tree | 599ab169a01f1c86eda9adc774edaedde2f2db5b /lib/IR/Metadata.cpp | |
parent | 1a56a5ead7a2e84bee8240f5f6b033b5f1707154 (diff) |
Notes
Diffstat (limited to 'lib/IR/Metadata.cpp')
-rw-r--r-- | lib/IR/Metadata.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/IR/Metadata.cpp b/lib/IR/Metadata.cpp index 5536c2497f1e..748a2238e642 100644 --- a/lib/IR/Metadata.cpp +++ b/lib/IR/Metadata.cpp @@ -1,9 +1,8 @@ //===- Metadata.cpp - Implement Metadata classes --------------------------===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // @@ -1180,10 +1179,7 @@ void MDGlobalAttachmentMap::getAll( // Sort the resulting array so it is stable with respect to metadata IDs. We // need to preserve the original insertion order though. - std::stable_sort( - Result.begin(), Result.end(), - [](const std::pair<unsigned, MDNode *> &A, - const std::pair<unsigned, MDNode *> &B) { return A.first < B.first; }); + llvm::stable_sort(Result, less_first()); } void Instruction::setMetadata(StringRef Kind, MDNode *Node) { |