aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-08-24 21:40:10 +0000
committerAnna Zaks <ganna@apple.com>2011-08-24 21:40:10 +0000
commite94cb98d39fcd2cca68ab1b0d71f9a16b5e934c1 (patch)
treefef504f0fcbc5f3288467304f96962143211ef5d /lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp
parent851c75a279bb4441bc6802d0258ceb4ab64738d4 (diff)
[analyzer] Unbreak the release buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138493 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp')
-rw-r--r--lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp3
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);