diff options
author | serge-sans-paille <sguelton@redhat.com> | 2022-05-09 14:18:58 +0200 |
---|---|---|
committer | serge-sans-paille <sguelton@redhat.com> | 2022-05-16 07:50:39 +0200 |
commit | 924acb624f58030652ecc8c07db313fde0f31395 (patch) | |
tree | f5ea6b8de576527aa3a10d7090baea37126e012e /lldb/source/Commands/CommandObjectThreadUtil.cpp | |
parent | 0809f63826d36c89574d6ac056ebf46a4b6f29ff (diff) | |
download | llvm-924acb624f58030652ecc8c07db313fde0f31395.zip llvm-924acb624f58030652ecc8c07db313fde0f31395.tar.gz llvm-924acb624f58030652ecc8c07db313fde0f31395.tar.bz2 |
[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
Diffstat (limited to 'lldb/source/Commands/CommandObjectThreadUtil.cpp')
0 files changed, 0 insertions, 0 deletions