diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 4b1ef88971e8..e62632cad8f3 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -986,7 +986,7 @@ void CFRefCount::EvalObjCMessageExpr(ExplodedNodeSet& Dst, RVal X = StateMgr.GetRVal(St, lv); if (isa(X)) { - SymbolID Sym = cast(V).getSymbol(); + SymbolID Sym = cast(X).getSymbol(); B = Remove(B, Sym); // Create a new state with the updated bindings.