Fix build breaks for master-next against llvm.org.

StringRef conversion to std::string needs to be explicit now.
This commit is contained in:
Michael Forster
2020-03-04 14:43:49 +01:00
parent e92599fa63
commit 32d2b1486c
5 changed files with 10 additions and 10 deletions

View File

@@ -151,14 +151,14 @@ public:
[&](const RequestResult<CursorInfoData> &Result) {
assert(!Result.isCancelled());
if (Result.isError()) {
TestInfo.Error = Result.getError();
TestInfo.Error = Result.getError().str();
sema.signal();
return;
}
const CursorInfoData &Info = Result.value();
TestInfo.Name = Info.Name;
TestInfo.Typename = Info.TypeName;
TestInfo.Filename = Info.Filename;
TestInfo.Name = Info.Name.str();
TestInfo.Typename = Info.TypeName.str();
TestInfo.Filename = Info.Filename.str();
TestInfo.DeclarationLoc = Info.DeclarationLoc;
sema.signal();
});