[Sema] Preparations for removal of getName on ValueDecl (#9972)

With the introduction of special decl names, `Identifier getName()` on
`ValueDecl` will be removed and pushed down to nominal declarations
whose name is guaranteed not to be special. Prepare for this by calling
to `DeclBaseName getBaseName()` instead where appropriate.
This commit is contained in:
Jordan Rose
2017-05-28 22:36:39 -07:00
committed by GitHub
parent 230dd86dc2
commit 4468ad2028
24 changed files with 109 additions and 96 deletions

View File

@@ -104,7 +104,7 @@ ValueDecl *DerivedConformance::deriveBridgedNSError(TypeChecker &tc,
auto enumType = cast<EnumDecl>(type);
if (requirement->getName() == tc.Context.Id_nsErrorDomain)
if (requirement->getBaseName() == tc.Context.Id_nsErrorDomain)
return deriveBridgedNSError_enum_nsErrorDomain(tc, parentDecl, enumType);
tc.diagnose(requirement->getLoc(),