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.
2 parents 6a4f37b + 0124407 commit df710efCopy full SHA for df710ef
tools/SourceKit/lib/SwiftLang/SwiftASTManager.cpp
@@ -1049,9 +1049,10 @@ ASTUnitRef ASTBuildOperation::buildASTUnit(std::string &Error) {
1049
}
1050
1051
if (CompIns.setup(Invocation, Error)) {
1052
- // FIXME: Report the diagnostic.
1053
LOG_WARN_FUNC("Compilation setup failed!!!");
1054
- Error = "compilation setup failed";
+ if (Error.empty()) {
+ Error = "compilation setup failed";
1055
+ }
1056
return nullptr;
1057
1058
registerIDERequestFunctions(CompIns.getASTContext().evaluator);
0 commit comments