[PATCH] D124038: [clang] Prevent folding of non-const compound expr

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 9 10:21:43 PDT 2022


efriedma added inline comments.


================
Comment at: clang/lib/AST/ExprConstant.cpp:4267
+      bool IsConstant = CLETy.isConstant(Info.Ctx);
+      if (!IsConstant && CLETy->isArrayType()) {
+        Info.FFDiag(Conv);
----------------
Is the "isArrayType()" check here necessary?


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

https://reviews.llvm.org/D124038



More information about the cfe-commits mailing list