diff options
author | Anna Zaks <ganna@apple.com> | 2013-03-26 18:57:51 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2013-03-26 18:57:51 +0000 |
commit | df5f80f8a34e26a4fb77f48f858c7838426a0785 (patch) | |
tree | 8aacaa3ab0b59fc19c108ea2702a1fe4a1b4f5da /lib/StaticAnalyzer/Core/RegionStore.cpp | |
parent | 4e493bd968ba837115fc1d42490e7bf19d03d577 (diff) |
[analyzer] micro optimization as per Jordan’s feedback on r177905.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/RegionStore.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/RegionStore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/RegionStore.cpp b/lib/StaticAnalyzer/Core/RegionStore.cpp index ae2752d00a..b866a58d04 100644 --- a/lib/StaticAnalyzer/Core/RegionStore.cpp +++ b/lib/StaticAnalyzer/Core/RegionStore.cpp @@ -833,13 +833,13 @@ RegionStoreManager::removeSubRegionBindings(RegionBindingsConstRef B, const SubRegion *Top) { BindingKey TopKey = BindingKey::Make(Top, BindingKey::Default); const MemRegion *ClusterHead = TopKey.getBaseRegion(); - const ClusterBindings *Cluster = B.lookup(ClusterHead); if (Top == ClusterHead) { // We can remove an entire cluster's bindings all in one go. return B.remove(Top); } + const ClusterBindings *Cluster = B.lookup(ClusterHead); if (!Cluster) { // If we're invalidating a region with a symbolic offset, we need to make // sure we don't treat the base region as uninitialized anymore. |