]> granicus.if.org Git - clang/commitdiff
Mark nodes as sinks that GRAuditor says should be marked as sinks.
authorTed Kremenek <kremenek@apple.com>
Thu, 3 Apr 2008 17:56:48 +0000 (17:56 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 3 Apr 2008 17:56:48 +0000 (17:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49179 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/GRCoreEngine.h

index 4228531fb2b394987d49d2f65906f4849e7873c2..35fddadf3365d58dd3204257ca83842d72feb647 100644 (file)
@@ -261,7 +261,8 @@ public:
         Dst.Add(N);
         
         for ( ; AB != AE; ++AB)
-          (*AB)->Audit(N);
+          if ((*AB)->Audit(N))
+            N->markAsSink();            
       }
     }