summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/Environment.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-10-13 05:05:20 +0000
committerJordan Rose <jordan_rose@apple.com>2012-10-13 05:05:20 +0000
commit690c063b73061c46deb882283b40cb917f2d1199 (patch)
treecd265aed8ca8ece603548cc792d77e30f050fa85 /clang/lib/StaticAnalyzer/Core/Environment.cpp
parent88b690dd2ed4cff137ac41ba711e456bb67a522c (diff)
downloadbcm5719-llvm-690c063b73061c46deb882283b40cb917f2d1199.tar.gz
bcm5719-llvm-690c063b73061c46deb882283b40cb917f2d1199.zip
[analyzer] Remove the "direct bindings only" Environment lookup.
This was only used by OSAtomicChecker and makes it more difficult to update values for expressions that the environment may look through instead (it's not the same as IgnoreParens). With this gone, we can have bindExpr bind to the inner expression that getSVal will find. Groundwork for <rdar://problem/12137950> llvm-svn: 165866
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/Environment.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/Environment.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/Environment.cpp b/clang/lib/StaticAnalyzer/Core/Environment.cpp
index a8c2da76424..07659cb601c 100644
--- a/clang/lib/StaticAnalyzer/Core/Environment.cpp
+++ b/clang/lib/StaticAnalyzer/Core/Environment.cpp
@@ -30,17 +30,7 @@ SVal Environment::lookupExpr(const EnvironmentEntry &E) const {
}
SVal Environment::getSVal(const EnvironmentEntry &Entry,
- SValBuilder& svalBuilder,
- bool useOnlyDirectBindings) const {
-
- if (useOnlyDirectBindings) {
- // This branch is rarely taken, but can be exercised by
- // checkers that explicitly bind values to arbitrary
- // expressions. It is crucial that we do not ignore any
- // expression here, and do a direct lookup.
- return lookupExpr(Entry);
- }
-
+ SValBuilder& svalBuilder) const {
const Stmt *E = Entry.getStmt();
const LocationContext *LCtx = Entry.getLocationContext();
OpenPOWER on IntegriCloud