Skip to content

Commit a8255f2

Browse files
committed
abi-checker: allow ABI checker to deserialize @_implementationOnly modules on demand
This could prevent the tool from crashing when module recovery failed.
1 parent 4391f42 commit a8255f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/swift-api-digester/swift-api-digester.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2548,6 +2548,8 @@ static int prepareForDump(const char *Main,
25482548
InitInvok.getLangOptions().Target.isOSDarwin();
25492549
InitInvok.getClangImporterOptions().ModuleCachePath =
25502550
options::ModuleCachePath;
2551+
// Module recovery issue shouldn't bring down the tool.
2552+
InitInvok.getLangOptions().AllowDeserializingImplementationOnly = true;
25512553

25522554
if (!options::SwiftVersion.empty()) {
25532555
using version::Version;

0 commit comments

Comments
 (0)