Fix this for std::vectors which don't have .data().

llvm-svn: 101785
This commit is contained in:
Dan Gohman 2010-04-19 16:33:28 +00:00
parent cbe3e1a3df
commit 3457061a66
1 changed files with 1 additions and 1 deletions

View File

@ -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");