File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -180,24 +180,23 @@ static int run_driver(StringRef ExecName,
180
180
}
181
181
182
182
int main (int argc_, const char **argv_) {
183
- SmallVector<const char *, 256 > args (&argv_[0 ], &argv_[argc_]);
184
-
185
183
// Expand any response files in the command line argument vector - arguments
186
184
// may be passed through response files in the event of command line length
187
185
// restrictions.
186
+ SmallVector<const char *, 256 > ExpandedArgs (&argv_[0 ], &argv_[argc_]);
188
187
llvm::BumpPtrAllocator Allocator;
189
188
llvm::StringSaver Saver (Allocator);
190
189
llvm::cl::ExpandResponseFiles (
191
190
Saver,
192
191
llvm::Triple (llvm::sys::getProcessTriple ()).isOSWindows () ?
193
192
llvm::cl::TokenizeWindowsCommandLine :
194
193
llvm::cl::TokenizeGNUCommandLine,
195
- args );
194
+ ExpandedArgs );
196
195
197
196
// Initialize the stack trace using the parsed argument vector with expanded
198
197
// response files.
199
- int ExpandedArgc = args .size ();
200
- const char **ExpandedArgv = args .data ();
198
+ int ExpandedArgc = ExpandedArgs .size ();
199
+ const char **ExpandedArgv = ExpandedArgs .data ();
201
200
PROGRAM_START (ExpandedArgc, ExpandedArgv);
202
201
SmallVector<const char *, 256 > argv (&ExpandedArgv[0 ],
203
202
&ExpandedArgv[ExpandedArgc]);
You can’t perform that action at this time.
0 commit comments