Previously, this code discarded the result of CheckPlaceholderExpr for non-matrix subexpressions. Not only is this wasteful, but it was creating a Warc-repeated-use-of-weak false-positive on the attached testcase, since the discarded expression was still registered as a use of the weak property. (This was introduced in D76791)
rdar://66162246
I think it would be good to split the comment into 2. The case below is base is a MatrixSubscriptExpr, and further down we handle base is a matrix type.