mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-01 07:11:45 +00:00
Fix this for std::vectors which don't have .data().
llvm-svn: 101785
This commit is contained in:
parent
091c01cb2f
commit
ede59ecfbb
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user