From 84867e60a466fa1199eb4e838ddf873a2f7658a9 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 3 Apr 2008 17:56:48 +0000 Subject: [PATCH] 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 --- include/clang/Analysis/PathSensitive/GRCoreEngine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } } -- 2.40.0