[clang] [Clang] fix(95366): enhance cast operation safety with LValue validation (PR #95479)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 14 08:18:47 PDT 2024
================
@@ -9325,6 +9325,9 @@ bool PointerExprEvaluator::VisitCastExpr(const CastExpr *E) {
Result.IsNullPtr = false;
return true;
} else {
+ if (!Value.isLValue())
----------------
a-tarasyuk wrote:
@AaronBallman Thanks for the feedback 👍. I've added all the requested changes.
https://github.com/llvm/llvm-project/pull/95479
More information about the cfe-commits
mailing list