aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Compiler.cpp
diff options
context:
space:
mode:
authorkadir çetinkaya <kadircet@google.com>2025-07-08 16:00:40 +0200
committerGitHub <noreply@github.com>2025-07-08 16:00:40 +0200
commitf72e53f35070140cbd6d4acdf7f8bc37f72d0445 (patch)
tree4f9641dbe16fbb6c79010593bf6503bbc0e46a7a /clang/lib/AST/ByteCode/Compiler.cpp
parent39bc0529b018a89b4b6a21aaabe240cd3a65c44d (diff)
downloadllvm-f72e53f35070140cbd6d4acdf7f8bc37f72d0445.zip
llvm-f72e53f35070140cbd6d4acdf7f8bc37f72d0445.tar.gz
llvm-f72e53f35070140cbd6d4acdf7f8bc37f72d0445.tar.bz2
[clang][CompundLiteralExpr] Don't defer evaluation for CLEs (#137163)
Previously we would defer evaluation of CLEs until LValue to RValue conversions, which would result in creating values within wrong scope and triggering use-after-frees. This patch instead eagerly evaluates CLEs, within the scope requiring them. This requires storing an extra pointer for CLE expressions with static storage. Fixes https://github.com/llvm/llvm-project/issues/137165
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions