diff options
Diffstat (limited to 'lib/Driver/ArgList.cpp')
-rw-r--r-- | lib/Driver/ArgList.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Driver/ArgList.cpp b/lib/Driver/ArgList.cpp index 30da136e04..7653daf7ee 100644 --- a/lib/Driver/ArgList.cpp +++ b/lib/Driver/ArgList.cpp @@ -13,7 +13,9 @@ using namespace clang::driver; -ArgList::ArgList(const char **ArgBegin, const char **ArgEnd) { +ArgList::ArgList(const char **ArgBegin, const char **ArgEnd) + : NumInputArgStrings(ArgEnd - ArgBegin) +{ ArgStrings.append(ArgBegin, ArgEnd); } |