Skip to content

Commit 34af205

Browse files
committed
Use std::vector for collecting arguments for swift-driver forwarding.
Just something to try while we investigate whether SmallVector could be messing up the input to `execv`.
1 parent 9b963b7 commit 34af205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/driver/driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ static int run_driver(StringRef ExecName,
221221
SmallString<256> NewDriverPath(llvm::sys::path::parent_path(Path));
222222
if (appendSwiftDriverName(NewDriverPath) &&
223223
llvm::sys::fs::exists(NewDriverPath)) {
224-
SmallVector<const char *, 256> subCommandArgs;
224+
std::vector<const char *> subCommandArgs;
225225
// Rewrite the program argument.
226226
subCommandArgs.push_back(NewDriverPath.c_str());
227227
if (ExecName == "swiftc") {

0 commit comments

Comments
 (0)