[PATCH] D87102: [Sema] Fix a -Warc-repeated-use-of-weak false-positive by only calling CheckPlaceholderExpr once

Florian Hahn via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 3 13:16:51 PDT 2020


fhahn accepted this revision.
fhahn added a comment.

LGTM, thanks for addressing this! Please wait a bit with committing, in case there are additional comments.



================
Comment at: clang/lib/Sema/SemaExpr.cpp:4598
   }
   // If the base is either a MatrixSubscriptExpr or a matrix type, try to create
   // a new MatrixSubscriptExpr.
----------------
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`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87102/new/

https://reviews.llvm.org/D87102



More information about the cfe-commits mailing list