]> granicus.if.org Git - clang/commit
[analyzer] Ensure that the node NilReceiverBRVisitor is looking for is not reclaimed
authorAnna Zaks <ganna@apple.com>
Wed, 27 Mar 2013 17:35:58 +0000 (17:35 +0000)
committerAnna Zaks <ganna@apple.com>
Wed, 27 Mar 2013 17:35:58 +0000 (17:35 +0000)
commit4a49df3be929d442535d6721ab8a2bbc8a7cd528
treeaaab4d76bf89f9f37ad424c0490221a1c2bd0ffe
parentea744ab5f39b8f45f802301841b77398166bce8f
[analyzer] Ensure that the node NilReceiverBRVisitor is looking for is not reclaimed

The visitor should look for the PreStmt node as the receiver is nil in the PreStmt and this is the node. Also, tag the nil
receiver nodes with a special tag for consistency.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178152 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h
lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp