[llvm] r345682 - Use the container form llvm::sort(C)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 30 17:31:06 PDT 2018


Author: maskray
Date: Tue Oct 30 17:31:06 2018
New Revision: 345682

URL: http://llvm.org/viewvc/llvm-project?rev=345682&view=rev
Log:
Use the container form llvm::sort(C)

Modified:
    llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp

Modified: llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp?rev=345682&r1=345681&r2=345682&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp Tue Oct 30 17:31:06 2018
@@ -296,7 +296,7 @@ EmitRegUnitPressure(raw_ostream &OS, con
            PSetE = PSetIDs.end(); PSetI != PSetE; ++PSetI) {
       PSets[i].push_back(RegBank.getRegPressureSet(*PSetI).Order);
     }
-    llvm::sort(PSets[i].begin(), PSets[i].end());
+    llvm::sort(PSets[i]);
     PSetsSeqs.add(PSets[i]);
   }
 




More information about the llvm-commits mailing list