mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
[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:
parent
c01810eeb7
commit
d0fff1886c
@ -346,7 +346,7 @@ const StringRef root_directory(StringRef path) {
|
|||||||
|
|
||||||
const StringRef relative_path(StringRef path) {
|
const StringRef relative_path(StringRef path) {
|
||||||
StringRef root = root_path(path);
|
StringRef root = root_path(path);
|
||||||
return root.substr(root.size());
|
return path.substr(root.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
void append(SmallVectorImpl<char> &path, const Twine &a,
|
void append(SmallVectorImpl<char> &path, const Twine &a,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user