[llvm] r341597 - Fix error with SmallString implicit conversion.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 6 15:47:32 PDT 2018
Author: zturner
Date: Thu Sep 6 15:47:32 2018
New Revision: 341597
URL: http://llvm.org/viewvc/llvm-project?rev=341597&view=rev
Log:
Fix error with SmallString implicit conversion.
Modified:
llvm/trunk/lib/Testing/Support/SupportHelpers.cpp
Modified: llvm/trunk/lib/Testing/Support/SupportHelpers.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Testing/Support/SupportHelpers.cpp?rev=341597&r1=341596&r2=341597&view=diff
==============================================================================
--- llvm/trunk/lib/Testing/Support/SupportHelpers.cpp (original)
+++ llvm/trunk/lib/Testing/Support/SupportHelpers.cpp Thu Sep 6 15:47:32 2018
@@ -30,11 +30,9 @@ static std::pair<bool, SmallString<128>>
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;
More information about the llvm-commits
mailing list