diff options
author | Anna Zaks <ganna@apple.com> | 2012-08-29 23:23:39 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-08-29 23:23:39 +0000 |
commit | 28694c1fe44082970cd53ca7ffef25f668e4c545 (patch) | |
tree | 000eafbc91b044e4511768c3ba351dce4deb68f0 /lib | |
parent | 9af9122067f1334806a5f22ce907a3209490d506 (diff) |
[analyzer] Fixup 162863.
Thanks Jordan.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162875 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/StaticAnalyzer/Core/BugReporterVisitors.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp b/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp index 521b727395..358bfdd89c 100644 --- a/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp +++ b/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp @@ -978,7 +978,7 @@ UndefOrNullArgVisitor::VisitNode(const ExplodedNode *N, // Are we tracking the argument? if ( !ArgReg || ArgReg != R) - return 0; + continue; // Check the function parameter type. const ParmVarDecl *ParamDecl = *I; @@ -987,13 +987,13 @@ UndefOrNullArgVisitor::VisitNode(const ExplodedNode *N, if (!(T->isAnyPointerType() || T->isReferenceType())) { // Function can only change the value passed in by address. - return 0; + continue; } // If it is a const pointer value, the function does not intend to // change the value. if (T->getPointeeType().isConstQualified()) - return 0; + continue; // Mark the call site (LocationContext) as interesting if the value of the // argument is undefined or '0'/'NULL'. |