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 | 5264974b599e03070e3863003ff0d1c642e7e02b (patch) | |
| tree | 62645b5e37f8412fb52b9c043cabad950e4165d3 | |
| parent | a10c42a292cd56982ff3013f61a8a5772b9f1d96 (diff) | |
| download | external_llvm-5264974b599e03070e3863003ff0d1c642e7e02b.zip external_llvm-5264974b599e03070e3863003ff0d1c642e7e02b.tar.gz external_llvm-5264974b599e03070e3863003ff0d1c642e7e02b.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
| -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"); |
