Skip to content

Commit f5853ba

Browse files
committed
swift-api-digester: avoid adding MissingMemberDecl to the json file
We explicitly ignore these ABI placeholders to fix an unreachable hit.
1 parent ad79bba commit f5853ba

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tools/swift-api-digester/ModuleAnalyzerNodes.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,6 +1553,8 @@ SwiftDeclCollector::addMembersToRoot(SDKNode *Root, IterableDeclContext *Context
15531553
// All containing variables should have been handled.
15541554
} else if (isa<DestructorDecl>(Member)) {
15551555
// deinit has no impact.
1556+
} else if (isa<MissingMemberDecl>(Member)) {
1557+
// avoid adding MissingMemberDecl
15561558
} else {
15571559
llvm_unreachable("unhandled member decl kind.");
15581560
}

utils/api_checker/swift-api-checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def check_call(cmd, cwd=None, env=os.environ, verbose=False, output=None):
3434
if verbose:
3535
print(' '.join([escapeCmdArg(arg) for arg in cmd]))
3636
return subprocess.check_call(cmd, cwd=cwd, env=env,
37-
stderr=subprocess.STDOUT, stdout=output)
37+
stderr=None, stdout=output)
3838

3939

4040
def check_output(cmd, verbose=False):

0 commit comments

Comments
 (0)