diff options
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Analysis/RegionStore.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index b4eb4b8e194..1dc5118d9e8 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()) |