Skip to content

Commit 038af80

Browse files
authored
Merge pull request swiftlang#37850 from artemcm/DriverForwardingArgumentStructure
Use `std::vector` for collecting arguments for swift-driver forwarding.
2 parents f8454bf + 34af205 commit 038af80

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
@@ -226,7 +226,7 @@ static int run_driver(StringRef ExecName,
226226
SmallString<256> NewDriverPath(llvm::sys::path::parent_path(Path));
227227
if (appendSwiftDriverName(NewDriverPath) &&
228228
llvm::sys::fs::exists(NewDriverPath)) {
229-
SmallVector<const char *, 256> subCommandArgs;
229+
std::vector<const char *> subCommandArgs;
230230
// Rewrite the program argument.
231231
subCommandArgs.push_back(NewDriverPath.c_str());
232232
if (ExecName == "swiftc") {

0 commit comments

Comments
 (0)