mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Swift: Fix dataset check errors by not referring to unavailable decls
Test Test Test Test Test Test
This commit is contained in:
@@ -538,7 +538,7 @@ void ExprTranslator::fillSelfApplyExpr(const swift::SelfApplyExpr& expr,
|
||||
|
||||
void ExprTranslator::fillLookupExpr(const swift::LookupExpr& expr, codeql::LookupExpr& entry) {
|
||||
entry.base = dispatcher.fetchLabel(expr.getBase());
|
||||
if (expr.hasDecl()) {
|
||||
if (expr.hasDecl() && !expr.getDecl().getDecl()->isUnavailable()) {
|
||||
entry.member = dispatcher.fetchLabel(expr.getDecl().getDecl());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user