Use array_pod_sort instead of std::sort.
llvm-svn: 175472
This commit is contained in:
parent
63318ce957
commit
1f199a0ef2
|
@ -17657,7 +17657,7 @@ bool X86TargetLowering::ExpandInlineAsm(CallInst *CI) const {
|
|||
AsmPieces.clear();
|
||||
const std::string &ConstraintsStr = IA->getConstraintString();
|
||||
SplitString(StringRef(ConstraintsStr).substr(5), AsmPieces, ",");
|
||||
std::sort(AsmPieces.begin(), AsmPieces.end());
|
||||
array_pod_sort(AsmPieces.begin(), AsmPieces.end());
|
||||
if (AsmPieces.size() == 4 &&
|
||||
AsmPieces[0] == "~{cc}" &&
|
||||
AsmPieces[1] == "~{dirflag}" &&
|
||||
|
@ -17675,7 +17675,7 @@ bool X86TargetLowering::ExpandInlineAsm(CallInst *CI) const {
|
|||
AsmPieces.clear();
|
||||
const std::string &ConstraintsStr = IA->getConstraintString();
|
||||
SplitString(StringRef(ConstraintsStr).substr(5), AsmPieces, ",");
|
||||
std::sort(AsmPieces.begin(), AsmPieces.end());
|
||||
array_pod_sort(AsmPieces.begin(), AsmPieces.end());
|
||||
if (AsmPieces.size() == 4 &&
|
||||
AsmPieces[0] == "~{cc}" &&
|
||||
AsmPieces[1] == "~{dirflag}" &&
|
||||
|
|
Loading…
Reference in New Issue