summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-04 01:39:08 +0000
committerDan Gohman <gohman@apple.com>2010-08-04 01:39:08 +0000
commit5cae10339208cdf484d67df5d65995a5338f097d (patch)
treeaa1809bd8db3fbbd47b39ea9e7bfacd564937a07 /llvm/lib/System/Unix
parent839c97210251da6dee4083b09b75f00f99aad424 (diff)
downloadbcm5719-llvm-5cae10339208cdf484d67df5d65995a5338f097d.tar.gz
bcm5719-llvm-5cae10339208cdf484d67df5d65995a5338f097d.zip
Eliminate unnecessary empty string literals.
llvm-svn: 110183
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r--llvm/lib/System/Unix/Path.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/Unix/Path.inc b/llvm/lib/System/Unix/Path.inc
index bc104a32a3a..3d88311b4e7 100644
--- a/llvm/lib/System/Unix/Path.inc
+++ b/llvm/lib/System/Unix/Path.inc
@@ -276,7 +276,7 @@ Path::GetCurrentDirectory() {
char pathname[MAXPATHLEN];
if (!getcwd(pathname,MAXPATHLEN)) {
assert (false && "Could not query current working directory.");
- return Path("");
+ return Path();
}
return Path(pathname);
@@ -408,7 +408,7 @@ Path::getSuffix() const {
std::string::size_type dot = path.rfind('.');
if (dot == std::string::npos || dot < slash)
- return StringRef("");
+ return StringRef();
else
return StringRef(path).substr(dot + 1);
}
OpenPOWER on IntegriCloud