Driver: Implement Option::accept methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66106 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/OptTable.cpp b/lib/Driver/OptTable.cpp
index 5de71d7..3308bc5 100644
--- a/lib/Driver/OptTable.cpp
+++ b/lib/Driver/OptTable.cpp
@@ -126,7 +126,7 @@
if (Str[0] != '-')
return new PositionalArg(getOption(InputOpt), Index++);
- for (unsigned j = UnknownOpt + 1; j < getNumOptions(); ++j) {
+ for (unsigned j = UnknownOpt + 1; j < LastOption; ++j) {
const char *OptName = getOptionName((options::ID) j);
// Arguments are only accepted by options which prefix them.