Skip to content

Commit 9df8541

Browse files
committed
Accessors never have local discriminators
1 parent c849cbe commit 9df8541

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/AST/Decl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2706,6 +2706,10 @@ bool ValueDecl::hasLocalDiscriminator() const {
27062706
if (isa<OpaqueTypeDecl>(this))
27072707
return false;
27082708

2709+
// Accessors never have local discriminators.
2710+
if (isa<AccessorDecl>(this))
2711+
return false;
2712+
27092713
// Implicit and unnamed declarations never have local discriminators.
27102714
if (getBaseName().isSpecial())
27112715
return false;

0 commit comments

Comments
 (0)