From: Ted Kremenek Date: Thu, 3 Apr 2008 17:56:48 +0000 (+0000) Subject: Mark nodes as sinks that GRAuditor says should be marked as sinks. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84867e60a466fa1199eb4e838ddf873a2f7658a9;p=clang Mark nodes as sinks that GRAuditor says should be marked as sinks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49179 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/PathSensitive/GRCoreEngine.h b/include/clang/Analysis/PathSensitive/GRCoreEngine.h index 4228531fb2..35fddadf33 100644 --- a/include/clang/Analysis/PathSensitive/GRCoreEngine.h +++ b/include/clang/Analysis/PathSensitive/GRCoreEngine.h @@ -261,7 +261,8 @@ public: Dst.Add(N); for ( ; AB != AE; ++AB) - (*AB)->Audit(N); + if ((*AB)->Audit(N)) + N->markAsSink(); } }