summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-09-30 21:41:11 +0000
committerFangrui Song <maskray@google.com>2018-09-30 21:41:11 +0000
commit1d38c13f6e22889624df47b74bf058cf1864b392 (patch)
treeec14ba7c7bbc589249302106ae612aa0520351d4 /clang/lib/Basic/Targets.cpp
parentf21083870d1c20b2fd51b08c397ae7da13bd6341 (diff)
downloadbcm5719-llvm-1d38c13f6e22889624df47b74bf058cf1864b392.tar.gz
bcm5719-llvm-1d38c13f6e22889624df47b74bf058cf1864b392.zip
Use the container form llvm::sort(C, ...)
There are a few leftovers of rC343147 that are not (\w+)\.begin but in the form of ([-[:alnum:]>.]+)\.begin or spanning two lines. Change them to use the container form in this commit. The 12 occurrences have been inspected manually for safety. llvm-svn: 343425
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r--clang/lib/Basic/Targets.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index 1ef2fe3b814..1a2f4145f10 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -640,7 +640,7 @@ TargetInfo::CreateTargetInfo(DiagnosticsEngine &Diags,
Opts->Features.push_back((F.getValue() ? "+" : "-") + F.getKey().str());
// Sort here, so we handle the features in a predictable order. (This matters
// when we're dealing with features that overlap.)
- llvm::sort(Opts->Features.begin(), Opts->Features.end());
+ llvm::sort(Opts->Features);
if (!Target->handleTargetFeatures(Opts->Features, Diags))
return nullptr;
OpenPOWER on IntegriCloud