Re-land "[clang] Add early exit when checking for const init of arrays."
authorSam McCall <sam.mccall@gmail.com>
Wed, 29 Dec 2021 11:07:42 +0000 (12:07 +0100)
committerSam McCall <sam.mccall@gmail.com>
Wed, 29 Dec 2021 12:07:30 +0000 (13:07 +0100)
commit9dc4af327b12dfbcf90fde1641cd649c6814bf98
treed568d30049853c53556733a8f169ea679b0f0f9f
parent4fedd4be385e6502a7806df87a3cdd02f99bbcba
Re-land "[clang] Add early exit when checking for const init of arrays."

This reverts commit 6d09aaecdfe51e13fc64d539aa7c9a790de341d7.

The test uses ulimit and ran into problems on some bots. Run on linux only.
There's nothing platform-specific about the code we're testing, so this
should be enough to ensure correctness.
clang/lib/AST/ExprConstant.cpp
clang/test/SemaCXX/PR51712-large-array-constexpr-check-oom.cpp [new file with mode: 0644]