We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b6f949 commit 8d58ba8Copy full SHA for 8d58ba8
tools/SourceKit/tools/sourcekitd/lib/API/sourcekitdAPI-XPC.cpp
@@ -380,8 +380,8 @@ sourcekitd::createErrorRequestInvalid(const char *Description) {
380
}
381
sourcekitd_response_t
382
sourcekitd::createErrorRequestFailed(StringRef DescRef) {
383
- const char *Description = DescRef.str().c_str();
384
- return CustomXPCData::createErrorRequestFailed(Description).getXObj();
+ std::string Desc = DescRef.str();
+ return CustomXPCData::createErrorRequestFailed(Desc.c_str()).getXObj();
385
386
387
sourcekitd::createErrorRequestInterrupted(const char *Description) {
0 commit comments