summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-08-28 00:50:51 +0000
committerJordan Rose <jordan_rose@apple.com>2012-08-28 00:50:51 +0000
commita0f7d35afe89a873f03befe998a45cd77d7b7c9d (patch)
tree96a376b009036e6cfa31f63c6a63237453467eb0 /clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
parent72c5515bab16582dcc139c63dfb5df0b8eafcbcc (diff)
downloadbcm5719-llvm-a0f7d35afe89a873f03befe998a45cd77d7b7c9d.tar.gz
bcm5719-llvm-a0f7d35afe89a873f03befe998a45cd77d7b7c9d.zip
[analyzer] Rename addTrackNullOrUndefValueVisitor to trackNullOrUndefValue.
This helper function (in the clang::ento::bugreporter namespace) may add more than one visitor, but conceptually it's tracking a single use of a null or undefined value and should do so as best it can. Also, the BugReport parameter has been made a reference to underscore that it is non-optional. llvm-svn: 162720
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
index d35455c2191..d298dd972e2 100644
--- a/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
@@ -224,7 +224,7 @@ bool UnixAPIChecker::ReportZeroByteAllocation(CheckerContext &C,
BugReport *report = new BugReport(*BT_mallocZero, os.str(), N);
report->addRange(arg->getSourceRange());
- bugreporter::addTrackNullOrUndefValueVisitor(N, arg, report);
+ bugreporter::trackNullOrUndefValue(N, arg, *report);
C.EmitReport(report);
return true;
OpenPOWER on IntegriCloud