llvm-project
f72e53f3 - [clang][CompundLiteralExpr] Don't defer evaluation for CLEs (#137163)

Commit
178 days ago
[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
Author
Parents
Loading