@@ -180,7 +180,7 @@ static int run_driver(StringRef ExecName,
180
180
}
181
181
182
182
int main (int argc_, const char **argv_) {
183
- SmallVector<const char *, 256 > argv (&argv_[0 ], &argv_[argc_]);
183
+ SmallVector<const char *, 256 > args (&argv_[0 ], &argv_[argc_]);
184
184
185
185
// Expand any response files in the command line argument vector - arguments
186
186
// may be passed through response files in the event of command line length
@@ -192,11 +192,15 @@ int main(int argc_, const char **argv_) {
192
192
llvm::Triple (llvm::sys::getProcessTriple ()).isOSWindows () ?
193
193
llvm::cl::TokenizeWindowsCommandLine :
194
194
llvm::cl::TokenizeGNUCommandLine,
195
- argv );
195
+ args );
196
196
197
197
// Initialize the stack trace using the parsed argument vector with expanded
198
198
// response files.
199
- PROGRAM_START (argv.size (), argv.data ());
199
+ int ExpandedArgc = args.size ();
200
+ const char **ExpandedArgv = args.data ();
201
+ PROGRAM_START (ExpandedArgc, ExpandedArgv);
202
+ SmallVector<const char *, 256 > argv (&ExpandedArgv[0 ],
203
+ &ExpandedArgv[ExpandedArgc]);
200
204
201
205
// Check if this invocation should execute a subcommand.
202
206
StringRef ExecName = llvm::sys::path::stem (argv[0 ]);
0 commit comments