diff options
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp b/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp index bc6663d237..161b8433d6 100644 --- a/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp @@ -504,8 +504,7 @@ void MacOSKeychainAPIChecker::checkPreStmt(const ReturnStmt *S, BugReport *MacOSKeychainAPIChecker:: generateAllocatedDataNotReleasedReport(const AllocationPair &AP, ExplodedNode *N) const { - const AllocationState &AS = AP.second; - const ADFunctionInfo &FI = FunctionsToTrack[AS.AllocatorIdx]; + const ADFunctionInfo &FI = FunctionsToTrack[AP.second.AllocatorIdx]; initBugType(); llvm::SmallString<70> sbuf; llvm::raw_svector_ostream os(sbuf); |