]> granicus.if.org Git - clang/commitdiff
rewrite the logic to make it follow the comments more closely.
authorZhongxing Xu <xuzhongxing@gmail.com>
Wed, 15 Jul 2009 06:21:18 +0000 (06:21 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Wed, 15 Jul 2009 06:21:18 +0000 (06:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75750 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/Store.cpp

index bbda565cec5b4f783042f2e9b13d26ac13414fde..c7f9eecc7386b4bfeaf34cef5c0b6e8275233e38 100644 (file)
@@ -248,7 +248,8 @@ const GRState *StoreManager::InvalidateRegion(const GRState *state,
     // The only exception is if the original region had a location type as its
     // value type we always want to treat the region as binding to a location.
     // This issue can arise when pointers are casted to integers and back.
-    if (!Loc::IsLocType(T) || Loc::IsLocType(NewT))
+
+    if (!(Loc::IsLocType(T) && !Loc::IsLocType(NewT)))
       T = NewT;
   }