Skip to content

Commit f0082a8

Browse files
authored
Merge pull request #69506 from nate-chandler/gardening/20231030/1
[Gardening] Cleaned up a few comments.
2 parents 3ab320b + 3de0474 commit f0082a8

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

lib/IRGen/LocalTypeData.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,15 +311,15 @@ LocalTypeDataCache::StateAdvancement LocalTypeDataCache::advanceStateInScope(
311311
key = key.getCachingKey();
312312

313313
auto iterator = Map.find(key);
314-
// There's no chain of entries, no no entry which could possibly be used.
314+
// There's no chain of entries, so no entry which could possibly be used.
315315
if (iterator == Map.end())
316316
return StateAdvancement::NoEntry;
317317
auto &chain = iterator->second;
318318

319-
// Scan the chain for entries with the appropriate relationship to the active
320-
// dominance scope, and "promote their state". Any entry whose state is
321-
// already at least as complete than `state` is unaffected, and results in
322-
// exiting early.
319+
// Scan the chain for an entry with the appropriate relationship to the active
320+
// dominance scope, and "promote its state". The existence of a concrete
321+
// entry whose state is already at least as complete as `state` is
322+
// unaffected, and results in exiting early.
323323
//
324324
// There are two cases of interest:
325325
//

lib/SILOptimizer/Mandatory/AddressLowering.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ struct ValueStorage {
138138

139139
/// When either isDefProjection or isUseProjection is set, this refers to the
140140
/// storage whose "def" this value projects out of or whose operand this
141-
/// storage projects into via its "use.
141+
/// storage projects into via its "use".
142142
uint32_t projectedStorageID = InvalidID;
143143

144144
/// For use-projections, identifies the operand index of the composing use.

lib/SILOptimizer/Mandatory/PhiStorageOptimizer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
///
5757
/// bb0:
5858
/// %get0 = apply %get<T>() : $@convention(thin) <τ_0_0>() -> @out τ_0_0
59+
/// cond_br undef, bb1, bb2
5960
///
6061
/// bb1:
6162
/// destroy_value %get0 : $T

0 commit comments

Comments
 (0)