mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Change a couple of Identifier usages to DeclName instead
This commit is contained in:
@@ -520,7 +520,7 @@ struct ASTContext::Implementation {
|
||||
llvm::DenseMap<const AbstractFunctionDecl *, SourceRange> OriginalBodySourceRanges;
|
||||
|
||||
/// Macro discriminators per context.
|
||||
llvm::DenseMap<std::pair<const void *, Identifier>, unsigned>
|
||||
llvm::DenseMap<std::pair<const void *, DeclBaseName>, unsigned>
|
||||
NextMacroDiscriminator;
|
||||
|
||||
/// Local and closure discriminators per context.
|
||||
@@ -2286,8 +2286,8 @@ unsigned ASTContext::getNextMacroDiscriminator(
|
||||
MacroDiscriminatorContext context,
|
||||
DeclBaseName baseName
|
||||
) {
|
||||
std::pair<const void *, Identifier> key(
|
||||
context.getOpaqueValue(), baseName.getIdentifier());
|
||||
std::pair<const void *, DeclBaseName> key(
|
||||
context.getOpaqueValue(), baseName);
|
||||
return getImpl().NextMacroDiscriminator[key]++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user