From: Ted Kremenek Date: Wed, 15 Jul 2009 04:23:32 +0000 (+0000) Subject: Relax assertion. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41fb0df17bafd699a063982292a90b6293788654;p=clang Relax assertion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75738 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index b4eb4b8e19..1dc5118d9e 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -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())