diff options
| author | Fangrui Song <maskray@google.com> | 2018-09-30 22:31:29 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2018-09-30 22:31:29 +0000 |
| commit | 3507c6e88479866e6b057ecbfd74b8d72b8275c3 (patch) | |
| tree | cd17d63ff2fc849c31c5e17a23d7a3f630e0690a /llvm/utils/TableGen/FastISelEmitter.cpp | |
| parent | 1d38c13f6e22889624df47b74bf058cf1864b392 (diff) | |
| download | bcm5719-llvm-3507c6e88479866e6b057ecbfd74b8d72b8275c3.tar.gz bcm5719-llvm-3507c6e88479866e6b057ecbfd74b8d72b8275c3.zip | |
Use the container form llvm::sort(C, ...)
There are a few leftovers in rL343163 which span two lines. This commit
changes these llvm::sort(C.begin(), C.end, ...) to llvm::sort(C, ...)
llvm-svn: 343426
Diffstat (limited to 'llvm/utils/TableGen/FastISelEmitter.cpp')
| -rw-r--r-- | llvm/utils/TableGen/FastISelEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/FastISelEmitter.cpp b/llvm/utils/TableGen/FastISelEmitter.cpp index 9d18623b107..6e04d1711cc 100644 --- a/llvm/utils/TableGen/FastISelEmitter.cpp +++ b/llvm/utils/TableGen/FastISelEmitter.cpp @@ -829,7 +829,7 @@ void FastISelMap::printFunctionDefinitions(raw_ostream &OS) { = SignaturesWithConstantForms.find(Operands); if (MI != SignaturesWithConstantForms.end()) { // Unique any duplicates out of the list. - llvm::sort(MI->second.begin(), MI->second.end()); + llvm::sort(MI->second); MI->second.erase(std::unique(MI->second.begin(), MI->second.end()), MI->second.end()); |

