From: Ted Kremenek Date: Thu, 18 Sep 2008 23:23:19 +0000 (+0000) Subject: Register the implicit null-dereferenced object as a notable symbol. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37fc826f94c3d8fb6ad0d4c3c822d0682e53e267;p=clang Register the implicit null-dereferenced object as a notable symbol. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56319 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CheckNSError.cpp b/lib/Analysis/CheckNSError.cpp index d39fa0a86a..25f610e833 100644 --- a/lib/Analysis/CheckNSError.cpp +++ b/lib/Analysis/CheckNSError.cpp @@ -149,6 +149,7 @@ void NSErrorCheck::CheckParamDeref(VarDecl* Param, GRStateRef rootState, << Param->getName() << "' may be null."; desc = os.str().c_str(); + BR.addNotableSymbol(SV->getSymbol()); BR.EmitWarning(R); } }