rsmith added inline comments.

================
Comment at: clang/lib/CodeGen/CGExpr.cpp:882-887
+  while (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) {
+    if (!BO->isCommaOp())
+      break;
+    E = BO->getRHS();
+    E = E->IgnoreParens();
+  }
----------------
If we're going to further extend what Clang considers to be a flexible array 
access, we should do so consistently across our warning machinery and our 
sanitizers. Perhaps we could start by unifying this function with 
`IsTailPaddedMemberArray` in `SemaChecking`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77374



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D77374: F... Vitaly Buka via Phabricator via cfe-commits
    • [PATCH] D773... Vitaly Buka via Phabricator via cfe-commits
    • [PATCH] D773... Richard Smith - zygoloid via Phabricator via cfe-commits
    • [PATCH] D773... Vitaly Buka via Phabricator via cfe-commits
    • [PATCH] D773... Richard Smith - zygoloid via Phabricator via cfe-commits

Reply via email to