Skip to content

Commit 6e69338

Browse files
committed
[lldb/Host] Pass a StringRef to the FileSpec ctor
The FileSpec constructor takes a StringRef so there's no point in going through a C string.
1 parent 75c3d6f commit 6e69338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Host/common/Host.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ Status Host::RunShellCommand(const Args &args, const FileSpec &working_dir,
521521
}
522522
}
523523

524-
FileSpec output_file_spec(output_file_path.c_str());
524+
FileSpec output_file_spec(output_file_path.str());
525525
// Set up file descriptors.
526526
launch_info.AppendSuppressFileAction(STDIN_FILENO, true, false);
527527
if (output_file_spec)

0 commit comments

Comments
 (0)