diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Support/Windows/Path.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index fbed7f8b025..045734c3694 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/lib/Support/Windows/Path.inc @@ -372,7 +372,7 @@ static std::error_code rename_internal(HANDLE FromHandle, const Twine &To, RenameInfo.ReplaceIfExists = ReplaceIfExists; RenameInfo.RootDirectory = 0; RenameInfo.FileNameLength = ToWide.size(); - std::copy(ToWide.begin(), ToWide.end(), RenameInfo.FileName); + std::copy(ToWide.begin(), ToWide.end(), &RenameInfo.FileName[0]); if (!SetFileInformationByHandle(FromHandle, FileRenameInfo, &RenameInfo, RenameInfoBuf.size())) |