mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] If setting up the compiler instance failed with an error, don't override it with a generic error message
This commit is contained in:
@@ -1049,9 +1049,10 @@ ASTUnitRef ASTBuildOperation::buildASTUnit(std::string &Error) {
|
||||
}
|
||||
|
||||
if (CompIns.setup(Invocation, Error)) {
|
||||
// FIXME: Report the diagnostic.
|
||||
LOG_WARN_FUNC("Compilation setup failed!!!");
|
||||
Error = "compilation setup failed";
|
||||
if (Error.empty()) {
|
||||
Error = "compilation setup failed";
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
registerIDERequestFunctions(CompIns.getASTContext().evaluator);
|
||||
|
||||
Reference in New Issue
Block a user