[PathV2] Fix bug in relative_path.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151675 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael J. Spencer 2012-02-29 00:06:24 +00:00
parent c01810eeb7
commit d0fff1886c

View File

@ -346,7 +346,7 @@ const StringRef root_directory(StringRef path) {
const StringRef relative_path(StringRef path) {
StringRef root = root_path(path);
return root.substr(root.size());
return path.substr(root.size());
}
void append(SmallVectorImpl<char> &path, const Twine &a,