@@ -238,14 +238,14 @@ class MemoryLocations {
238238 addr2LocIdx[projection] = locIdx;
239239 }
240240
241- // / Sets the location bits os \p addr in \p bits, if \p addr is associated
241+ // / Sets the location bits of \p addr in \p bits, if \p addr is associated
242242 // / with a location.
243243 void setBits (Bits &bits, SILValue addr) const {
244244 if (auto *loc = getLocation (addr))
245245 bits |= loc->subLocations ;
246246 }
247247
248- // / Clears the location bits os \p addr in \p bits, if \p addr is associated
248+ // / Clears the location bits of \p addr in \p bits, if \p addr is associated
249249 // / with a location.
250250 void clearBits (Bits &bits, SILValue addr) const {
251251 if (auto *loc = getLocation (addr))
@@ -307,7 +307,7 @@ class MemoryLocations {
307307 SubLocationMap &subLocationMap);
308308
309309 // / Helper function called by analyzeLocation to create a sub-location for
310- // / and address projection and check all of its uses.
310+ // / an address projection and check all of its uses.
311311 bool analyzeAddrProjection (
312312 SingleValueInstruction *projection, unsigned parentLocIdx,unsigned fieldNr,
313313 SmallVectorImpl<SILValue> &collectedVals, SubLocationMap &subLocationMap);
0 commit comments