Attempt to fix the build after r125228.

llvm-svn: 125236
This commit is contained in:
Cameron Zwarich 2011-02-09 23:02:14 +00:00
parent 0bc2855aa9
commit f73f5ba21c
1 changed files with 2 additions and 2 deletions

View File

@ -522,13 +522,13 @@ void canonical(const char *path, SmallVectorImpl<char> &buffer) {
buffer.resize(length);
memcpy(buffer.data(), result, length);
free(result);
return buffer.data();
return;
}
size_t length = strlen(path);
buffer.resize(length);
memcpy(buffer.data(), path, length);
return path;
return;
}
} // end namespace path