[PATCH] D155955: [Clang] Improve the handling of large arrays evaluation.

Corentin Jabot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 24 04:47:42 PDT 2023


cor3ntin updated this revision to Diff 543472.
cor3ntin added a comment.

- Use -fconstexpr-steps to limit the size of the array.
- Aply the logic to both constant evaluation and constant folding as is constant evaluation fail the limit can now be increased.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D155955

Files:
  clang/docs/ReleaseNotes.rst
  clang/include/clang/AST/Type.h
  clang/include/clang/Basic/DiagnosticASTKinds.td
  clang/lib/AST/ExprConstant.cpp
  clang/lib/AST/Type.cpp
  clang/test/SemaCXX/cxx2a-constexpr-dynalloc-limits.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155955.543472.patch
Type: text/x-patch
Size: 11209 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230724/e1ad8638/attachment-0001.bin>


More information about the cfe-commits mailing list