Merge remote-tracking branch 'origin/main' into manually-merge-main-to-rebranch

Conflicts:
  - `include/swift/AST/PluginRegistry.h`
This commit is contained in:
Ben Barham
2024-06-27 14:56:11 -07:00
181 changed files with 3845 additions and 1645 deletions

View File

@@ -151,8 +151,13 @@ static int action_replay_result(swiftscan_cas_t cas, const char *key,
std::vector<const char *> &Args) {
swiftscan_string_ref_t err_msg;
auto comp = swiftscan_cache_query(cas, key, /*globally=*/false, &err_msg);
if (!comp)
return printError(err_msg);
if (!comp) {
if (err_msg.length != 0)
return printError(err_msg);
llvm::errs() << "key " << key << " not found for replay\n";
return EXIT_FAILURE;
}
SWIFT_DEFER { swiftscan_cached_compilation_dispose(comp); };
auto numOutput = swiftscan_cached_compilation_get_num_outputs(comp);