[clang] [LifetimeSafety] Handle xvalue operand of LValueToRValue cast (PR #192312)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 16 10:22:11 PDT 2026
================
@@ -288,8 +288,7 @@ void FactsGenerator::VisitCastExpr(const CastExpr *CE) {
switch (CE->getCastKind()) {
case CK_LValueToRValue:
- // TODO: Decide what to do for x-values here.
- if (!SubExpr->isLValue())
+ if (!SubExpr->isGLValue())
----------------
usx95 wrote:
Can you please verify that this does not introduce crashes while building LLVM with lifetime safety.
https://github.com/llvm/llvm-project/pull/192312
More information about the cfe-commits
mailing list