mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix build breaks for master-next against llvm.org.
StringRef conversion to std::string needs to be explicit now.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user