[clang] Prevent folding of non-const compound expr
When a non-const compound statement is used to initialize a constexpr pointer, the pointed value is not const itself and cannot be folded at codegen time. This matches GCC behavior for compound literal expr arrays. Fix issue #39324. Differential Revision: https://reviews.llvm.org/D124038
Loading
Please sign in to comment