Skip to content

Commit

Permalink
[lldb/Host] Pass a StringRef to the FileSpec ctor
Browse files Browse the repository at this point in the history
The FileSpec constructor takes a StringRef so there's no point in going
through a C string.
  • Loading branch information
JDevlieghere committed Apr 29, 2020
1 parent 75c3d6f commit 6e69338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/source/Host/common/Host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ Status Host::RunShellCommand(const Args &args, const FileSpec &working_dir,
}
}

FileSpec output_file_spec(output_file_path.c_str());
FileSpec output_file_spec(output_file_path.str());
// Set up file descriptors.
launch_info.AppendSuppressFileAction(STDIN_FILENO, true, false);
if (output_file_spec)
Expand Down

0 comments on commit 6e69338

Please sign in to comment.