aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Driver/OptTable.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-23 19:19:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-23 19:19:19 +0000
commitee4d1feb44909bb3eb9fb34e389f0d3650b7d5cf (patch)
tree382f99ab6ee2ad5943a1e9fe34d1c457d18bf3b3 /clang/lib/Driver/OptTable.cpp
parentaedcfa49b95f795b93081f6d5cf9a1b4146d998e (diff)
downloadllvm-ee4d1feb44909bb3eb9fb34e389f0d3650b7d5cf.zip
llvm-ee4d1feb44909bb3eb9fb34e389f0d3650b7d5cf.tar.gz
llvm-ee4d1feb44909bb3eb9fb34e389f0d3650b7d5cf.tar.bz2
Driver: Fix off by one in computation of first searchable option.
llvm-svn: 67552
Diffstat (limited to 'clang/lib/Driver/OptTable.cpp')
-rw-r--r--clang/lib/Driver/OptTable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/OptTable.cpp b/clang/lib/Driver/OptTable.cpp
index 283ebf9..e773c66 100644
--- a/clang/lib/Driver/OptTable.cpp
+++ b/clang/lib/Driver/OptTable.cpp
@@ -91,7 +91,7 @@ OptTable::OptTable() : Options(new Option*[numOptions]()) {
FirstSearchableOption = 0;
for (unsigned i = OPT_UNKNOWN + 1; i < LastOption; ++i) {
if (getInfo(i).Kind != Option::GroupClass) {
- FirstSearchableOption = i + 1;
+ FirstSearchableOption = i;
break;
}
}