diff options
Diffstat (limited to 'llvm/lib/IR/Metadata.cpp')
| -rw-r--r-- | llvm/lib/IR/Metadata.cpp | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp index 70ffa652bfb..748a2238e64 100644 --- a/llvm/lib/IR/Metadata.cpp +++ b/llvm/lib/IR/Metadata.cpp @@ -1179,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) { | 

