[analyzer] Fixup 162863.
Thanks Jordan.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162875 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp b/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
index 521b727..358bfdd 100644
--- a/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
+++ b/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
@@ -978,7 +978,7 @@
// 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 @@
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'.