Skip to content

Commit 6e63486

Browse files
committed
AST: Remove a couple of bogus isInvalid() checks
1 parent f3f2ea6 commit 6e63486

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/AST/Type.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,9 +1790,6 @@ class IsBindableVisitor
17901790
if (nom->getDecl() != substNom->getDecl())
17911791
return CanType();
17921792

1793-
if (nom->getDecl()->isInvalid())
1794-
return CanType();
1795-
17961793
// Same decl should always either have or not have a parent.
17971794
assert((bool)nom->getParent() == (bool)substNom->getParent());
17981795

@@ -2034,8 +2031,6 @@ class IsBindableVisitor
20342031
return CanType();
20352032

20362033
auto *decl = bgt->getDecl();
2037-
if (decl->isInvalid())
2038-
return CanType();
20392034

20402035
auto *moduleDecl = decl->getParentModule();
20412036
auto origSubMap = bgt->getContextSubstitutionMap(

0 commit comments

Comments
 (0)