diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-04-30 22:20:27 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-04-30 22:20:27 +0000 |
| commit | 38aa57d966b6e87edc7eb5578c4b2a5b1b8fb522 (patch) | |
| tree | 470f200521b95df9fdc794fd89377c17fa6b725c | |
| parent | aa00e96a849cf0953db5f3ad519b6cb4447e0ff0 (diff) | |
| download | bcm5719-llvm-38aa57d966b6e87edc7eb5578c4b2a5b1b8fb522.tar.gz bcm5719-llvm-38aa57d966b6e87edc7eb5578c4b2a5b1b8fb522.zip | |
Attempt to fix Windows buildbots.
llvm-svn: 268170
| -rw-r--r-- | lld/ELF/DriverUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp index 57dfea357a3..918c29fd143 100644 --- a/lld/ELF/DriverUtils.cpp +++ b/lld/ELF/DriverUtils.cpp @@ -101,9 +101,9 @@ static std::string relative_to_root(StringRef Path) { // of the result. SmallString<128> Res; StringRef Root = path::root_name(Path); - if (Path.endswith(":")) + if (Root.endswith(":")) Res = Root.drop_back(); - else if (Path.startswith("//")) + else if (Root.startswith("//")) Res = Root.substr(2); path::append(Res, path::relative_path(Abs)); |

