Skip to content

Commit 09ed91f

Browse files
committed
AST: Fix some comments
1 parent c481769 commit 09ed91f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/AST/ASTContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5754,7 +5754,7 @@ ProtocolConformanceRef ProtocolConformanceRef::forAbstract(
57545754
properties |= conformingType->getRecursiveProperties();
57555755
auto arena = getArena(properties);
57565756

5757-
// Profile the substitution map.
5757+
// Form the folding set key.
57585758
llvm::FoldingSetNodeID id;
57595759
AbstractConformance::Profile(id, conformingType, proto);
57605760

lib/AST/AbstractConformance.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212
//
13-
// This file defines the AbstractConformance class, which stores an
14-
// abstract conformance that is stashed in a ProtocolConformanceRef.
13+
// This file defines the AbstractConformance class, which represents
14+
// the conformance of a type parameter or archetype to a protocol.
15+
// These are usually stashed inside a ProtocolConformanceRef.
1516
//
1617
//===----------------------------------------------------------------------===//
1718
#ifndef SWIFT_AST_ABSTRACT_CONFORMANCE_H
@@ -36,7 +37,7 @@ class AbstractConformance final : public llvm::FoldingSetNode {
3637
Profile(id, getType(), getProtocol());
3738
}
3839

39-
/// Profile the substitution map storage, for use with LLVM's FoldingSet.
40+
/// Profile the storage for this conformance, for use with LLVM's FoldingSet.
4041
static void Profile(llvm::FoldingSetNodeID &id,
4142
Type conformingType,
4243
ProtocolDecl *requirement) {

0 commit comments

Comments
 (0)