diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-19 16:33:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-19 16:33:28 +0000 |
commit | 3457061a66e23a884a34ff4274f01f96ba4867e9 (patch) | |
tree | 3f76ccdcbe3a2eb13c93013f57cd7a20c190015c /llvm/lib/System/Unix | |
parent | cbe3e1a3dfb811ba9be8f5ab5cd717d8fee401c5 (diff) | |
download | bcm5719-llvm-3457061a66e23a884a34ff4274f01f96ba4867e9.tar.gz bcm5719-llvm-3457061a66e23a884a34ff4274f01f96ba4867e9.zip |
Fix this for std::vectors which don't have .data().
llvm-svn: 101785
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r-- | llvm/lib/System/Unix/Path.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Path.inc b/llvm/lib/System/Unix/Path.inc index a0bfe295223..9be28169fa1 100644 --- a/llvm/lib/System/Unix/Path.inc +++ b/llvm/lib/System/Unix/Path.inc @@ -863,7 +863,7 @@ Path::makeUnique(bool reuse_current, std::string* ErrMsg) { // libSupport. And performance isn't critical here. std::vector<char> Buf; Buf.resize(path.size()+8); - char *FNBuffer = Buf.data(); + char *FNBuffer = &Buf[0]; path.copy(FNBuffer,path.size()); if (isDirectory()) strcpy(FNBuffer+path.size(), "/XXXXXX"); |