mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Adapt to llvm.org StringRef API change
This commit is contained in:
committed by
Michael Forster
parent
710799dd09
commit
259d78a350
@@ -1088,7 +1088,7 @@ static void transformAndForwardResults(
|
||||
});
|
||||
|
||||
auto *inputBuf = session->getBuffer();
|
||||
std::string str = inputBuf->getBuffer().slice(0, offset);
|
||||
std::string str = inputBuf->getBuffer().slice(0, offset).str();
|
||||
{
|
||||
llvm::raw_string_ostream OSS(str);
|
||||
SwiftToSourceKitCompletionAdapter::getResultSourceText(
|
||||
|
||||
Reference in New Issue
Block a user