diff options
author | Anna Zaks <ganna@apple.com> | 2011-10-26 21:06:44 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-10-26 21:06:44 +0000 |
commit | c9abbe2b3e1f36a3948c9c5da4cf88cfa9645239 (patch) | |
tree | 62f8fa8f63bc204144fcd9283ae5583f31bd3960 /clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp | |
parent | 6b1c21268d428b465a3a82b856dbc05e4e7e5917 (diff) | |
download | llvm-c9abbe2b3e1f36a3948c9c5da4cf88cfa9645239.zip llvm-c9abbe2b3e1f36a3948c9c5da4cf88cfa9645239.tar.gz llvm-c9abbe2b3e1f36a3948c9c5da4cf88cfa9645239.tar.bz2 |
[analyzer] Add getLocationContext to CheckerContext
CheckerContext::getPredecessor is only used to get to the LocationContext
half of the times.
llvm-svn: 143061
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp index d00ef59..4ad7cc9 100644 --- a/clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp @@ -57,8 +57,7 @@ bool BuiltinFunctionChecker::evalCall(const CallExpr *CE, // FIXME: Refactor into StoreManager itself? MemRegionManager& RM = C.getStoreManager().getRegionManager(); const AllocaRegion* R = - RM.getAllocaRegion(CE, C.getCurrentBlockCount(), - C.getPredecessor()->getLocationContext()); + RM.getAllocaRegion(CE, C.getCurrentBlockCount(), C.getLocationContext()); // Set the extent of the region in bytes. This enables us to use the // SVal of the argument directly. If we save the extent in bits, we |