mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-01 08:47:42 +00:00
[Support] Fix implicit std::string conversions on Win32.
This commit is contained in:
parent
1d02418b3c
commit
6ec02ae10e
@ -138,7 +138,7 @@ static HANDLE RedirectIO(Optional<StringRef> Path, int fd,
|
||||
if (Path->empty())
|
||||
fname = "NUL";
|
||||
else
|
||||
fname = *Path;
|
||||
fname = std::string(*Path);
|
||||
|
||||
SECURITY_ATTRIBUTES sa;
|
||||
sa.nLength = sizeof(sa);
|
||||
|
@ -460,7 +460,7 @@ bool sys::RemoveFileOnSignal(StringRef Filename, std::string* ErrMsg) {
|
||||
if (FilesToRemove == NULL)
|
||||
FilesToRemove = new std::vector<std::string>;
|
||||
|
||||
FilesToRemove->push_back(Filename);
|
||||
FilesToRemove->push_back(std::string(Filename));
|
||||
|
||||
LeaveCriticalSection(&CriticalSection);
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user