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 | 17192a1dd800808e4d7541a41d673d45fcdbe882 (patch) | |
tree | 62645b5e37f8412fb52b9c043cabad950e4165d3 /lib | |
parent | 4b7df442a8a3cc5eacd2a7bb93ef09b3d3bbe63b (diff) | |
download | external_llvm-17192a1dd800808e4d7541a41d673d45fcdbe882.zip external_llvm-17192a1dd800808e4d7541a41d673d45fcdbe882.tar.gz external_llvm-17192a1dd800808e4d7541a41d673d45fcdbe882.tar.bz2 |
Fix this for std::vectors which don't have .data().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/System/Unix/Path.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc index a0bfe29..9be2816 100644 --- a/lib/System/Unix/Path.inc +++ b/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"); |