Skip to content

Commit ab1381a

Browse files
[Frontend] Weaken validation when emitting a trace. (#27737)
Fixes rdar://problem/56333192.
1 parent 924da0c commit ab1381a

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

lib/FrontendTool/FrontendTool.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -301,17 +301,8 @@ static void computeSwiftModuleTraceInfo(
301301

302302
ModuleDecl *depMod = dep->second;
303303
if(depMod->isResilient() && !isSwiftinterface) {
304-
SmallString<256> moduleAdjacentInterfacePath(depPath);
305-
computeAdjacentInterfacePath(moduleAdjacentInterfacePath);
306-
// FIXME: The behavior of fs::exists for relative paths is undocumented.
307-
// Use something else instead?
308-
if (!fs::exists(moduleAdjacentInterfacePath)) {
309-
err << "The module " << depMod->getName().str() << " has library"
310-
<< " evolution enabled but we're recording a non-adjacent"
311-
<< " swiftmodule at\n" << depPath << "\nin the trace.";
312-
llvm::report_fatal_error(err.str());
313-
}
314-
buffer.clear();
304+
// FIXME: Ideally, we would check that the swiftmodule has a
305+
// swiftinterface next to it. Tracked by rdar://problem/56351399.
315306
}
316307

317308
// FIXME: Better error handling

0 commit comments

Comments
 (0)