]> granicus.if.org Git - clang/commitdiff
Relax assertion.
authorTed Kremenek <kremenek@apple.com>
Wed, 15 Jul 2009 04:23:32 +0000 (04:23 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 15 Jul 2009 04:23:32 +0000 (04:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75738 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/RegionStore.cpp

index b4eb4b8e194ae81a42e80be0d9f1eba309742bde..1dc5118d9e896ee175c54bed6d17679f606536ff 100644 (file)
@@ -838,7 +838,8 @@ SVal RegionStoreManager::Retrieve(const GRState *state, Loc L, QualType T) {
     SVal idx = ValMgr.makeIntVal(0, Ctx.IntTy);
     R = MRMgr.getElementRegion(T, idx, R, Ctx);
     RTy = T;
-    assert(RTy == R->getValueType(Ctx));
+    assert(Ctx.getCanonicalType(RTy) ==
+           Ctx.getCanonicalType(R->getValueType(Ctx)));
   }  
 
   if (RTy->isStructureType())