]> granicus.if.org Git - clang/commitdiff
Combine two branches into one. No functionality change.
authorTed Kremenek <kremenek@apple.com>
Wed, 21 Jan 2009 22:58:50 +0000 (22:58 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 21 Jan 2009 22:58:50 +0000 (22:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62727 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/RegionStore.cpp

index 7c42fec6ffbddb4b911ac1c6bb2d6add9851acf7..3faae70885d89da26309d7467277ba40bc5ea4b7 100644 (file)
@@ -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);