r250646 - Add an unnecessary makeArrayRef I add earlier. I didn't realize range-based for loops worked with arrays.
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 17 22:29:23 PDT 2015
Author: ctopper
Date: Sun Oct 18 00:29:23 2015
New Revision: 250646
URL: http://llvm.org/viewvc/llvm-project?rev=250646&view=rev
Log:
Add an unnecessary makeArrayRef I add earlier. I didn't realize range-based for loops worked with arrays.
Modified:
cfe/trunk/lib/Basic/DiagnosticIDs.cpp
Modified: cfe/trunk/lib/Basic/DiagnosticIDs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/DiagnosticIDs.cpp?rev=250646&r1=250645&r2=250646&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/DiagnosticIDs.cpp (original)
+++ cfe/trunk/lib/Basic/DiagnosticIDs.cpp Sun Oct 18 00:29:23 2015
@@ -566,7 +566,7 @@ StringRef DiagnosticIDs::getNearestOptio
StringRef Group) {
StringRef Best;
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.
if (!O.Members && !O.SubGroups)
continue;
More information about the cfe-commits
mailing list