summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-09-06 22:47:32 +0000
committerZachary Turner <zturner@google.com>2018-09-06 22:47:32 +0000
commit54d898e7d50038cd21d7fddc93df129a34e134dc (patch)
treeb16c238ec4579d1f48924fe8b886c5f0869a0d2d /llvm/lib
parent0fd5cdee3a34f29a75bf894ec2152b272048a0de (diff)
downloadbcm5719-llvm-54d898e7d50038cd21d7fddc93df129a34e134dc.tar.gz
bcm5719-llvm-54d898e7d50038cd21d7fddc93df129a34e134dc.zip
Fix error with SmallString implicit conversion.
llvm-svn: 341597
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Testing/Support/SupportHelpers.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Testing/Support/SupportHelpers.cpp b/llvm/lib/Testing/Support/SupportHelpers.cpp
index 2b26e9e0438..5f53b2330b2 100644
--- a/llvm/lib/Testing/Support/SupportHelpers.cpp
+++ b/llvm/lib/Testing/Support/SupportHelpers.cpp
@@ -30,11 +30,9 @@ static std::pair<bool, SmallString<128>> findSrcDirMap(StringRef Argv0) {
if (llvm::sys::fs::is_regular_file(PathInParentDir))
return std::make_pair(true, std::move(PathInParentDir));
- return std::pair<bool, SmallString<128>>(false, "");
+ return std::pair<bool, SmallString<128>>(false, {});
}
-static bool isInParentDir(StringRef Argv0) {}
-
SmallString<128> llvm::unittest::getInputFileDirectory(const char *Argv0) {
bool Found = false;
SmallString<128> InputFilePath;
OpenPOWER on IntegriCloud