[clang] [clang][NFC] Don't track OpaqueValueExpr in bad conversion sequence (PR #238243)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 3 00:20:11 PST 2026
================
@@ -597,7 +597,8 @@ class Sema;
public:
void init(FailureKind K, Expr *From, QualType To) {
init(K, From->getType(), To);
- FromExpr = From;
+ if (!isa<OpaqueValueExpr>(From))
+ FromExpr = From;
----------------
ojhunt wrote:
So the idea is that if this is an OVE we won't track them after the init has occurred, so the UaF problem is mitigated?
Can we add a comment to state that that is what we're doing here - from a reader's pov there's nothing indicating why this is happening.
https://github.com/llvm/llvm-project/pull/238243
More information about the cfe-commits
mailing list