diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-10-13 05:05:20 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-10-13 05:05:20 +0000 |
commit | e5a934d3c840872d58724383a83443ed38f1d831 (patch) | |
tree | 7ad5f1aa2ceb21f903e8c49742695982d97605d0 /lib/StaticAnalyzer/Core/Environment.cpp | |
parent | 42e95acef35f4633119be1c1381e88878c966502 (diff) |
[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>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/Environment.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/Environment.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/StaticAnalyzer/Core/Environment.cpp b/lib/StaticAnalyzer/Core/Environment.cpp index a8c2da7642..07659cb601 100644 --- a/lib/StaticAnalyzer/Core/Environment.cpp +++ b/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(); |