OSDN Git Service

Fix after r315079
authorAdrian McCarthy <amccarth@google.com>
Mon, 9 Oct 2017 17:50:01 +0000 (17:50 +0000)
committerAdrian McCarthy <amccarth@google.com>
Mon, 9 Oct 2017 17:50:01 +0000 (17:50 +0000)
commit24dbfe7f156cf4f01e0196e1b43450cf95fd88c6
tree0d70baad02339342e0adc4b8ae86a7b6b39f5daf
parent87b0f4a33cafe87763b4f046bf2fae41adc7f877
Fix after r315079

Microsoft's debug implementation of std::copy checks if the destination is an
array and then does some bounds checking.  This was causing an assertion
failure in fs::rename_internal which copies to a buffer of the appropriate
size but that's type-punned to an array of length 1 for API compatibility
reasons.

Fix is to make make the destination a pointer rather than an array.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315222 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Windows/Path.inc