[PATCH] D155955: [Clang] Improve the handling of large arrays evaluation.
Danila Malyutin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 24 07:09:47 PDT 2023
danilaml added inline comments.
================
Comment at: clang/lib/AST/ExprConstant.cpp:1026
+ // APValue stores array extents as unsigned,
+ // so anything that is greater that unsigned would overflow when
+ // constructing the array, we catch this here.
----------------
================
Comment at: clang/lib/AST/ExprConstant.cpp:1027
+ // so anything that is greater that unsigned would overflow when
+ // constructing the array, we catch this here.
+ if (BitWidth > ConstantArrayType::getMaxSizeBits(Ctx) ||
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155955/new/
https://reviews.llvm.org/D155955
More information about the cfe-commits
mailing list