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 b4eb4b8..1dc5118 100644
--- a/lib/Analysis/RegionStore.cpp
+++ b/lib/Analysis/RegionStore.cpp
@@ -838,7 +838,8 @@
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())