Skip to content

Commit d2a0016

Browse files
authored
Merge pull request #17961 from gottesmm/pr-4fe6a6b9454c2f413a111b7319ff852d3c63540d
2 parents a3552f3 + cfd1778 commit d2a0016

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

include/swift/SILOptimizer/Analysis/Analysis.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,13 @@ class SILAnalysis : public DeleteNotificationHandler {
8383
bool invalidationLock;
8484

8585
public:
86-
8786
/// Returns the kind of derived class.
8887
AnalysisKind getKind() const { return kind; }
8988

90-
/// C'tor.
89+
/// Constructor.
9190
SILAnalysis(AnalysisKind k) : kind(k), invalidationLock(false) {}
9291

93-
/// D'tor.
92+
/// Destructor.
9493
virtual ~SILAnalysis() {}
9594

9695
/// Can be used to retrieve other analysis passes from \p PM, which this
@@ -137,10 +136,12 @@ class SILAnalysis : public DeleteNotificationHandler {
137136
static void verifyFunction(SILFunction *F);
138137
};
139138

140-
// RAII helper for locking analyses.
139+
/// RAII helper for locking analyses. Locks the analysis upon construction and
140+
/// unlocks upon destruction.
141141
class AnalysisPreserver {
142142
SILAnalysis *analysis;
143-
public:
143+
144+
public:
144145
AnalysisPreserver(SILAnalysis *a) : analysis(a) {
145146
analysis->lockInvalidation();
146147
}

0 commit comments

Comments
 (0)