summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ArgList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Driver/ArgList.cpp')
-rw-r--r--clang/lib/Driver/ArgList.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Driver/ArgList.cpp b/clang/lib/Driver/ArgList.cpp
index 30da136e048..7653daf7ee1 100644
--- a/clang/lib/Driver/ArgList.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud