From 57fa7e3cc8d84ca20fa569208207e90e3bfc6b6a Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 15 Jul 2009 04:23:32 +0000 Subject: [PATCH] Relax assertion. llvm-svn: 75738 --- clang/lib/Analysis/RegionStore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index b4eb4b8e194a..1dc5118d9e89 100644 --- a/clang/lib/Analysis/RegionStore.cpp +++ b/clang/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())