[clang] [LifetimeSafety] Handle xvalue operand of LValueToRValue cast (PR #192312)
Zhijie Wang via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 16 12:00:40 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())
----------------
aeft wrote:
Done. No crashes were found.
https://github.com/llvm/llvm-project/pull/192312
More information about the cfe-commits
mailing list