Browse Source

Add an unnecessary makeArrayRef I add earlier. I didn't realize range-based for loops worked with arrays.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250646 91177308-0d34-0410-b5e6-96231b3b80d8
Craig Topper 9 years ago
parent
commit
9ca5cd300b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Basic/DiagnosticIDs.cpp

+ 1 - 1
lib/Basic/DiagnosticIDs.cpp

@@ -566,7 +566,7 @@ StringRef DiagnosticIDs::getNearestOption(diag::Flavor Flavor,
                                           StringRef Group) {
                                           StringRef Group) {
   StringRef Best;
   StringRef Best;
   unsigned BestDistance = Group.size() + 1; // Sanity threshold.
   unsigned BestDistance = Group.size() + 1; // Sanity threshold.
-  for (const WarningOption &O : llvm::makeArrayRef(OptionTable)) {
+  for (const WarningOption &O : OptionTable) {
     // Don't suggest ignored warning flags.
     // Don't suggest ignored warning flags.
     if (!O.Members && !O.SubGroups)
     if (!O.Members && !O.SubGroups)
       continue;
       continue;