summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2018-05-16 23:29:36 +0000
committerGreg Clayton <gclayton@apple.com>2018-05-16 23:29:36 +0000
commitf81f3a838a1de436e103a422808f575d803d8ace (patch)
tree2dc4dc5f6ff305fd0fb5bcf9af9881576dccecfa /llvm/lib/Support/Path.cpp
parente9c6f06cce2c69e91c7dcffbef3bcacb05bdea71 (diff)
downloadbcm5719-llvm-f81f3a838a1de436e103a422808f575d803d8ace.tar.gz
bcm5719-llvm-f81f3a838a1de436e103a422808f575d803d8ace.zip
Revert 332508 as it caused problems in the clang test suite.
llvm-svn: 332555
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r--llvm/lib/Support/Path.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp
index dfe9f470bab..ff41dd47c42 100644
--- a/llvm/lib/Support/Path.cpp
+++ b/llvm/lib/Support/Path.cpp
@@ -726,10 +726,6 @@ static SmallString<256> remove_dots(StringRef path, bool remove_dot_dot,
SmallString<256> buffer = path::root_path(path, style);
for (StringRef C : components)
path::append(buffer, style, C);
- // If the buffer is empty, then return ".". Many other path utilities
- // do this so it seems to be an expected result.
- if (buffer.empty())
- buffer.append(1, '.');
return buffer;
}
OpenPOWER on IntegriCloud