[cfe-commits] r67552 - /cfe/trunk/lib/Driver/OptTable.cpp

Daniel Dunbar daniel at zuster.org
Mon Mar 23 12:19:19 PDT 2009


Author: ddunbar
Date: Mon Mar 23 14:19:19 2009
New Revision: 67552

URL: http://llvm.org/viewvc/llvm-project?rev=67552&view=rev
Log:
Driver: Fix off by one in computation of first searchable option.

Modified:
    cfe/trunk/lib/Driver/OptTable.cpp

Modified: cfe/trunk/lib/Driver/OptTable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/OptTable.cpp?rev=67552&r1=67551&r2=67552&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/OptTable.cpp (original)
+++ cfe/trunk/lib/Driver/OptTable.cpp Mon Mar 23 14:19:19 2009
@@ -91,7 +91,7 @@
   FirstSearchableOption = 0;
   for (unsigned i = OPT_UNKNOWN + 1; i < LastOption; ++i) {
     if (getInfo(i).Kind != Option::GroupClass) {
-      FirstSearchableOption = i + 1;
+      FirstSearchableOption = i;
       break;
     }
   }





More information about the cfe-commits mailing list