diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-01-21 22:58:50 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-01-21 22:58:50 +0000 |
commit | c979e80a49ed0d23baafd9d96a0f16ecdc232f23 (patch) | |
tree | 27dd2190ac467b2aff896f2313c3de387dc9051a /lib/Analysis/RegionStore.cpp | |
parent | b248d53f2599d8e7b53b144b713e163ca521ffca (diff) |
Combine two branches into one. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r-- | lib/Analysis/RegionStore.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index 7c42fec6ff..3faae70885 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -323,10 +323,8 @@ SVal RegionStoreManager::getLValueField(const GRState* St, SVal Base, SVal RegionStoreManager::getLValueElement(const GRState* St, SVal Base, SVal Offset) { - if (Base.isUnknownOrUndef()) - return Base; - if (isa<loc::SymbolVal>(Base)) + if (Base.isUnknownOrUndef() || isa<loc::SymbolVal>(Base)) return Base; loc::MemRegionVal& BaseL = cast<loc::MemRegionVal>(Base); |