[PathV2] Fix bug in relative_path.

llvm-svn: 151675
This commit is contained in:
Michael J. Spencer 2012-02-29 00:06:24 +00:00
parent 576cbd03b4
commit e646239e5e
1 changed files with 1 additions and 1 deletions

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,